2 Replies Latest reply on May 5, 2014 8:11 AM by Le Riton

    JCA ClassNotFoundException

    Le Riton Newbie

      Hello,

       

      I'm trying to use a custom Resource Adapter in JBoss 7.1.1, witch was previously deployed under JBoss 5.

       

      After some minor changes (equals() and hashcode(), Referenceable), the RAR deploys successfully if alone in standalone/deployments.

       

      I also added mdb declaration to EJB3 subsystem

       

      <mdb>
          <resource-adapter-ref resource-adapter-name="my-jca.rar"/>
          <bean-instance-pool-ref pool-name="mdb-strict-max-pool"/>
      </mdb>
      

       

      and the complete resource-adapters subsystem from standalone-full.xml

       

      <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">
          <resource-adapters>
              <resource-adapter>
                  <archive>my-jca.rar</archive>
                  <transaction-support>NoTransaction</transaction-support>
                  <connection-definitions>
                      <connection-definition class-name="com.corp.outbound.MyImplManagedConnectionFactory"
                                                     jndi-name="java:/eis/MyEIS">
                      </connection-definition>
                  </connection-definitions>
              </resource-adapter>
          </resource-adapters>
      </subsystem>
      

       

      Since RA deploys, I think its definition and configuration is fine.

       

      However, my application (EAR packaging) throws ClassNotFoundException on my MessageListener implementation when deploying, even when I add this jboss-deployment-structure.xml in EAR's META-INF

       

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
          <deployment>
              <dependencies>
                  <module name="deployment.my-jca.rar"/>
              </dependencies>
          </deployment>
      </jboss-deployment-structure>
      

       

      Question is, am I missing something?

       

      I also tried to generate (using IronJacamar generator) a dummy RAR with no logic, exception remains the same, so I assume my original RAR is fine but I am missing a configuration detail.