4 Replies Latest reply on Jun 15, 2005 2:07 AM by nlany

    No Classloaders found for...

    ter_d

      Hello!
      I hope you can help me, unless there're some people in this forum who think I'm lazy and don't work to solve my own problems.
      I'm trying to configure the connection pool with Oracle.
      1.I uncomment the Pad attribute in jboss-servce.xml.
      2.I put the jdbc drivers, that is, classes12.jar, in my default/lib folder.
      3.Then, I create the /default/deploy/oracle-xa-ds.xml, which include


      <xa-datasource>
      <jndi-name>/jdbc/myoracle</jndi-name>
      <track-connection-by-tx>true</track-connection-by-tx>
      <isSameRM-override-value>false</isSameRM-override-value>
      <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
      <xa-datasource-property name="URL">jdbc:oracle:thin:@...</xa-datasource-property>
      <xa-datasource-property name="User">...</xa-datasource-property>
      <xa-datasource-property name="Password">...</xa-datasource-property>
      <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
      <no-tx-separate-pools/>
      </xa-datasource>


      <depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager



      But I keep having the following error...

      17:05:48,748 ERROR [MainDeployer] could not create deployment: file:/opt/jboss-4.0.0/server/default/deploy/oracle-xa-ds.xml
      org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.resource.adapter.jdbc.xa.oracle.OracleXAExceptionFormatter; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.resource.adapter.jdbc.xa.oracle.OracleXAExceptionFormatter)

      I can imagine it's not able to find a jar... but I don't know wthat's more I have to configure.
      I've followed the Startud guide and thst's all it says...

      Would you mind helping me?

        • 1. Re: No Classloaders found for...
          raygardner

          I see this issue was first posted months ago, so, not sure this will still help you. Maybe my post will help somebody else though. (Better late than never.)

          I too had the same exception as pointed out. I too followed the Getting Started guide, but, it needs to be corrected. It states to create a oracle deployment descriptor, oracle-xa-ds.xml, with the following MBean:

          <mbean code="org.jboss.resource.adapter.jdbc.xa.oracle.OracleXAExceptionFormatter" name="jboss.jca:service=OracleXAExceptionFormatter">
          <depends optional-attribute-name="TransactionManagerService">
          jboss:service=TransactionManager
          </depends>
          </mbean>
          


          But the path to the OracleXAExceptionFormatter class is incorrect. It should be:

          org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter

          Once I made this change it immediately re-deployed and it was successful.

          • 2. Re: No Classloaders found for...
            golubec

            realy helpful - why at JBOSS Co. no one have paid attention to this fact ??
            even at 4.0.2 Getting Start Guide this mistake is contained :((
            Thanks to raygardner.

            • 3. Re: No Classloaders found for...
              starksm64

              Report errors in documentation in jira:
              http://jira.jboss.com/jira/browse/JBDOCS

              • 4. Re: No Classloaders found for...

                what a great help! thanks a lot.

                I then checked the jar file on my system:

                #zipinfo jboss-common-jdbc-wrapper.jar | grep vendor

                I got
                -rw---- 2.0 fat 4063 bl defN 2-May-05 20:24 org/jboss/resource/adapter/jdbc/vendor/OracleXAExceptionFormatter.class
                


                So, if next time i get similar error, I think I can fix it myself.

                "raygardner" wrote:
                I see this issue was first posted months ago, so, not sure this will still help you. Maybe my post will help somebody else though. (Better late than never.)

                I too had the same exception as pointed out. I too followed the Getting Started guide, but, it needs to be corrected. It states to create a oracle deployment descriptor, oracle-xa-ds.xml, with the following MBean:

                <mbean code="org.jboss.resource.adapter.jdbc.xa.oracle.OracleXAExceptionFormatter" name="jboss.jca:service=OracleXAExceptionFormatter">
                <depends optional-attribute-name="TransactionManagerService">
                jboss:service=TransactionManager
                </depends>
                </mbean>
                


                But the path to the OracleXAExceptionFormatter class is incorrect. It should be:

                org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter

                Once I made this change it immediately re-deployed and it was successful.