-
15. Re: Oracle xa-datasource java.lang.ClassNotFoundException
nickarls Sep 8, 2012 1:21 AM (in response to epikninja)skip any extra "main" parts in name references? How does the module.xml look now and how do you reference it in standalone.xml? No extra "main" directories in the module either?
-
16. Re: Oracle xa-datasource java.lang.ClassNotFoundException
epikninja Sep 10, 2012 9:56 AM (in response to nickarls)Nicklas,
Here is the module.xml in ..\modules\com\oracle\ojdbc6\main.
<module xmlns="urn:jboss:module:1.1" name="com.oracle.ojdbc6">
<resources>
<resource-root path="ojdbc6.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
In standalone.xml, I reference the module as follows.
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/SpringQuickstartDS"
pool-name="SpringQuickstartDS" enabled="true" use-java-context="true">
<connection-url>jdbc:oracle:thin:@some_url.com:1521:some_sid</connection-url>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<driver>com.oracle.ojdbc6</driver>
<pool>
<min-pool-size>10</min-pool-size>
<max-pool-size>100</max-pool-size>
<prefill>true</prefill>
</pool>
<security>
<user-name>some_user</user-name>
<password>some_pw</password>
</security>
</datasource>
<drivers>
<driver name="com.oracle.ojdbc6" module="com.oracle.ojdbc6">
<datasource-class>oracle.jdbc.driver.OracleDriver</datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
-
17. Re: Oracle xa-datasource java.lang.ClassNotFoundException
nickarls Sep 10, 2012 11:55 AM (in response to epikninja)Hmm. Does it make any difference if you just call the driver "oracle" in the drivers/driver name and datasource/driver?
-
18. Re: Oracle xa-datasource java.lang.ClassNotFoundException
epikninja Sep 10, 2012 12:01 PM (in response to nickarls)I found the problem. I didn't realize I hadn't updated the jboss-deployment-structure.xml by adding the new module.
Again, thanks for your help, Nicklas!