ClassNotFoundException for messageListenerInterface class of a connector
mar10 Mar 21, 2012 1:12 AMHi,
I am trying to port an application to JBoss 7.1.1-final. Everything runs fine on Sailfin.
I have a problem with a MDB that acts as messagelistener for a connector (jca 1.5 compliant).
I get a ClassNotFoundException because the messageLlistenerInterface class can not be found.
I do not know how to solve this problem. Reading other threads didn't help of the JBoss documentation.
Suggestions are welcome.
Before is information on the exception, Java class and the connector.
Caused by: java.lang.ClassNotFoundException: com.ericsson.ngin.session.api.Service from [Module "deployment.TestEjb1.jar:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
at org.jboss.as.ejb3.deployment.processors.merging.TransactionAttributeMergingProcessor.handleAnnotations(TransactionAttributeMergingProcessor.java:79)
... 8 more
My MDB looks like this.
@MessageDriven(name = "TestService",
messageListenerInterface = Service.class,
activationConfig = { @ActivationConfigProperty (
propertyName = "serviceName",
propertyValue = "com.ericsson.testear.testejb1.TestService")
})
@ResourceAdapter("SessionRA.rar")
public class SessionMDB {
}
I have deployed & enabled my rar. JBoss doesn't report any problems, so I guess that must be ok.
I have updated the standalone.xml to add properties of the connector. This looks like this.
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"> | |
<resource-adapters> | |
<resource-adapter> | |
<archive> | |
SessionRA.rar | |
</archive> | |
<transaction-support>NoTransaction</transaction-support> | |
<connection-definitions> | |
<connection-definition class-name="com.ericsson.ngin.session.ra.boilerplate.ManagedConnectionFactoryImpl" jndi-name="java:/jca/SessionConnectionFactory" use-java-context="true" pool-name="SessionConnectionFactory" use-ccm="true"/> | |
</connection-definitions> | |
</resource-adapter> | |
</resource-adapters> | |
</subsystem> |
/Martien