Whenever multiple RARs are deployed backed by the same implementation class an MDB is unable to wire up to the correct RAR.
@MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/test") }) @ResourceAdapter("external-hornetq-ra.rar") public class ReplyingMDB implements MessageListener
10:00:01,502 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC00001: Failed to start service jboss.deployment.unit."ejb3mdb.jar".component.ReplyingMDB.CREATE: org.jboss.msc.service.StartException in service jboss.deployment.unit."ejb3mdb.jar".component.ReplyingMDB.CREATE: Failed to start service at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780) [jboss-msc-1.0.1.GA.jar:1.0.1.GA] 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: found more than one RA registered external-hornetq-ra at org.jboss.as.ejb3.component.EJBUtilities.createActivationSpecs(EJBUtilities.java:126) at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentCreateService.createComponent(MessageDrivenComponentCreateService.java:78) at org.jboss.as.ee.component.BasicComponentCreateService.start(BasicComponentCreateService.java:78) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA] ... 3 more