3 Replies Latest reply on Mar 18, 2005 1:31 AM by Elm van Olm

    Oracle 10g / JBoss 4.0 /

    xxx yyy Newbie

      Hi all,

      I need help to make Oracle 10g and JBoss 4.0 working together.

      In fact when I configure an XA datasource to work with distributed transaction I receive these error: "java.lang.ClassNotFoundException: No ClassLoaders found for: oracle.jdbc.xa.OracleXAException".

      I have followed the recommendations from the reference guide:
      1/ jboss-service.xml with pad set to true
      2/ oracle-xa-ds.xml copied to the deployed directory

      Here part of the stack trace.
      Thanks a lot for your help.
      / Xavier

      17:15:25,745 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=XAOracleDS to JNDI name 'java:XAOracleDS'
      17:15:25,775 ERROR [OracleXAExceptionFormatter] Starting failed jboss.jca:service=OracleXAExceptionFormatter java.lang.ClassNotFoundException: No ClassLoaders found for: oracle.jdbc.xa.OracleXAException
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:464)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:374)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter.startService(OracleXAExceptionFormatter.java:80)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)

        • 1. Re: Oracle 10g / JBoss 4.0 /
          Matthew Robinson Newbie

          oracle.jdbc.xa.OracleXAException is a vendor-specific class found the in Oracle JDBC Driver JAR file.

          This file is called ojdbc14.jar and may be downloaded from the Oracle site. Once you have it, put it in the lib directory of your JBOSS server instance.

          • 2. Re: Oracle 10g / JBoss 4.0 /
            xxx yyy Newbie

            Thanks Matt,
            But I have already deployed the Oracle jdbc driver.
            The error I have is when I start the server after having copied the ojdbc14.jar file in the deploy directory.
            All is fine when I deploy the oracle-xa-ds.xml connector, but not with oracle-xa-ds.xml. And I need distributed transactions !
            /Xavier

            • 3. Re: Oracle 10g / JBoss 4.0 /
              Elm van Olm Newbie

              Hi,

              1. put the ojdbc14.jar in the lib-directory of your jboss (e.g. default/lib)
              2. set pad=true in jboss-service.xml
              3. copy your oracle-xa-ds.xml (valide?) in deploy folder
              4. restart jboss

              now everything should work :-)