13 Replies Latest reply on Feb 20, 2008 10:34 AM by Adrian Brock

    deployment of RAR inside of EAR

    Greg Phillips Newbie

      My resource adapter works fine as standalone, but I want to add it to an EAR. So I did two things:
      1. Had Eclipse add it to my ear
      2. changed my *-ds.xml file from

      <connection-factories>
      <no-tx-connection-factory>
      <jndi-name>eis/MySample</jndi-name>
      <rar-name>GDFResourceAdapter.rar</rar-name>
      <connection-definition>
      gdfra.host.GDFConnectionFactory
      </connection-definition>
      </no-tx-connection-factory>
      </connection-factories>
      to
      <connection-factories>
      <no-tx-connection-factory>
      <jndi-name>eis/MySample</jndi-name>
      <rar-name>IWMDT_EAR.ear#GDFResourceAdapter.rar</rar-name>
      <connection-definition>
      gdfra.host.GDFConnectionFactory
      </connection-definition>
      </no-tx-connection-factory>
      </connection-factories>

      It doesn't work: I get this:

      14:03:40,920 ERROR [RARDeployment] Could not find ManagedConnectionFactory class: gdfra.spi.GDFManagedConnectionFactory
      java.lang.ClassNotFoundException: No ClassLoaders found for: gdfra.spi.GDFManagedConnectionFactory
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:463)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:374)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at org.jboss.resource.connectionmanager.RARDeployment.startService(RARDeployment.java:543)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)

      .....
      .....
      .....
      .....
      MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
      ObjectName: jboss.jca:service=ManagedConnectionFactory,name=eis/MySample
      state: FAILED
      I Depend On: jboss.jca:service=RARDeployment,name='IWMDT_EAR.ear#GDFResourceAdapter.rar'

      Depends On Me: jboss.jca:service=ManagedConnectionPool,name=eis/MySample
      org.jboss.deployment.DeploymentException: Could not find ManagedConnectionFactory class: gdfra.spi.GDFManagedConnectionFactory

      Can anyone tell me where I've gone wrong?