JBoss Community

Re: class loading of an inbound resource adapter?

created by Kai Grunert in IronJacamar - View the full discussion

Thank you for the answer - now the .jar-file resolves the dependencies correctly!

 

I have also added the @ResourceAdapter annotation to the MDB, but another exception occurs:

 

19:04:39,890 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.deployment.unit."UDPMsgBean.jar".component.UDPMessageDrivenBean.CREATE: org.jboss.msc.service.StartException in service jboss.deployment.unit."UDPMsgBean.jar".component.UDPMessageDrivenBean.CREATE: Failed to start service
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1786)
    at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
    at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
Caused by: java.lang.IllegalStateException: No resource adapter registered with resource adapter name RA_UDP
    at org.jboss.as.ejb3.component.EJBUtilities.createActivationSpecs(EJBUtilities.java:115)
    at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentCreateService.createComponent(MessageDrivenComponentCreateService.java:76)
    at org.jboss.as.ee.component.BasicComponentCreateService.start(BasicComponentCreateService.java:78)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
    ... 4 more

 

The same happens, if I deploy everything as  an .ear-file.

 

Is there something incorrect with the value of the annotation? I have also tried "deployment.RA_UDP.rar", but it does not work.

@ResourceAdapter("RA_UDP.rar")

 

The exception says, that the resource adapter is not registered - isn't it done automatically?

 

Any other ideas where the problem is?

Reply to this message by going to Community

Start a new discussion in IronJacamar at Community