1 Reply Latest reply on Nov 4, 2014 1:27 PM by Frank Langelage

    Unable to find driver class name in "OrclJDBCDriver" jar

    Jitendra Tiwari Newbie

      Hi ,

        I am trying to install custom driver as a module. I have created a custom wrapper over oracle.jdbc.xa.client.OracleXADataSource.

                 1- I created a module.xml as below

                    <module xmlns="urn:jboss:module:1.3" name="com.orcl.jdbc">

                    <resources>

                              <resource-root path="customDriver.jar"/> //custom driver jar

                    </resources>

                    <dependencies>

                          <module name="javax.api"/>

                         <module name="javax.transaction.api"/>

                  </dependencies>

                 </module>

                  2- customDriver.jar contains my custom driver class.

                  3-     <driver name="OrclJDBCDriver" module="com.orcl.jdbc">                      

                              <xa-datasource-class>com.my.driver.CustomOracleXADataSource</xa-datasource-class>                       

                          </driver>

                4-  I am getting a warning  "Unable to find driver class name in "OrclJDBCDriver" jar". 

                        But if I do the same steps with  oracle.jdbc.xa.client.OracleXADataSource(ojdbc.jar), it works fine.

           

        I want to use my custom driver.

      Any help would be highly appreciated.

      Thanks.