1 Reply Latest reply on Nov 6, 2006 6:16 PM by weston.price

    I create a datasource and I am getting the error  o ClassLoa

    johnybravo2004

      I created the following datasource file and get the error:

      7:59:37,924 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss/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)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)


      BELOW is the dtd file

      <?xml version="1.0" encoding="UTF-8"?>

      <!-- ===================================================================== -->
      <!-- -->
      <!-- JBoss Server DataBase Configuration -->
      <!-- -->
      <!-- ===================================================================== -->





      <local-tx-datasource>
      <jndi-name>MovieXADataSource</jndi-name>
      <connection-url>jdbc:oracle:thin:@localhost:1521:orcl</connection-url>
      <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
      <user-name>system</user-name>
      password
      <min-pool-size>5</min-pool-size>
      <max-pool-size>20</max-pool-size>

      <!-- The time before an unused connection is destroyed -->
      <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
      <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
      <idle-timeout-minutes>0</idle-timeout-minutes>

      <!-- Whether to check all statements are closed when the connection is returned to the pool,
      this is a debugging feature that should be turned off in production -->
      <track-statements/>

      <!-- Use the security domain defined in conf/login-config.xml -->
      <security-domain>HsqlDbRealm</security-domain>

      <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
      <!-- metadata>
      <type-mapping>Hypersonic SQL</type-mapping>
      </metadata -->

      <!-- This mbean can be used when using in process persistent hypersonic -->
      <!-- depends>jboss:service=Hypersonic,database=orcl</depends -->

      </local-tx-datasource>

      <!-- This mbean can be used when using in process persistent db -->
      <!-- mbean code="oracle.jdbc.driver.OracleDriver"
      name="jboss:service=Hypersonic,database=orcl">
      orcl
      true
      </mbean -->


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