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

    JCA ClassNotFoundException

    Le Riton Newbie



      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


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


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


      <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">
                      <connection-definition class-name="com.corp.outbound.MyImplManagedConnectionFactory"


      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">
                  <module name="deployment.my-jca.rar"/>


      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.