11 Replies Latest reply on Apr 25, 2007 7:59 PM by Weston M. Price

    JBossMessageEndpointFactory ClassNotFoundException when I re

    michele curioni Newbie

      Hi there,
      I have implemented a JCA 1.5 inbound-resourceadapter within my ear file.
      The resource adapter code is contained in a .rar file;
      the messagelistener-type interface is contained in a .jar file that is referenced from the manifest file of the rar.
      I have a MDB that implements the messagelistener-type, which is contained in another jar file.
      All of them are part of the ear.

      When I deploy and start the application everything works fine.

      If I then stop the MDB via the JMX console,
      when I try to start it again, I get a ClassNotFoundException for the messagelistener-type.

      Here is the stacktrace:
      [JBossMessageEndpointFactory] Starting failed jboss.j2ee:service=EJB,plugin=invoker,binding=message-inflow-driven-bean,jndiName=local/Solve3/RawProtocolRoutingMDBean@23247054 org.jboss.deployment.DeploymentException: Could not load messaging-type class biz.thelogicgroup.solve3.inputdriver.MessageRouting; - nested throwable: (java.lang.ClassNotFoundException: biz.thelogicgroup.solve3.inputdriver.MessageRouting)
      at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:39)
      at org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory.resolveMessageListener(JBossMessageEndpointFactory.java:312)

      I tried to reference the jar file that contains the messagelistener-type from the jar file that contains the MDB, but no difference.

      Any idea?