1 2 Previous Next 18 Replies Latest reply on Sep 10, 2012 12:01 PM by epikninja Go to original post
      • 15. Re: Oracle xa-datasource java.lang.ClassNotFoundException
        nickarls

        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

          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

            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

              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!

              1 2 Previous Next