I am new to Jboss. I am trying to create a datasource. I have added the following code in the standalone.xml:
<datasources>
<datasource jndi-name="java:/sss" enabled="true" use-java-context="true" pool-name="sss">
<connection-url>jdbc:oracle:thin:@ipaddress:sid</connection-url>
<driver> ojdbc14.jar</driver>
<pool></pool>
<security>
<user-name>username</user-name>
<password>password</password>
</security>
</datasource>
<drivers>
<driver name="ojdbc14.jar" module="com.oracle">
<xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class>
</driver>
</drivers>
</datasources>
I have placed my ojdbc14.jar in the following path, \jboss-as-web-7.0.2.Final\modules\com\oracle\main
.
I have persisted module.xml, as follows in the same path.
<module xmlns="urn:jboss:module:1.0" name="com.oracle">
<resources>
<resource-root path="ojdbc14.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
But I get the error as follows,
ERROR [stderr] Exception in thread "Controller Boot Thread" java.la ng.RuntimeException: org.jboss.as.controller.persistence.ConfigurationPersistenc eException: Failed to parse configuration
Can any one please help me in solving this error?.
Hi,
I am not sure if it'll solve your problem but did you modify your ojdbc14.jar like discribed here: http://community.jboss.org/wiki/DataSourceConfigurationInAS7#Modify_the_JAR
Best regards
Sascha