2 Replies Latest reply on Jun 20, 2013 10:12 PM by Stephen Coy

    Trying to integrate AS7.1.1 with ActiveMQ 5.8

    Stephen Johns Newbie

      I've been following the instructions at http://activemq.apache.org/jboss-integration.html

       

      That is written for older AMQ, but seemed close.  The only thing I did differently was to expand the .rar in /opt/jboss-as-7.1.1.Final/standalone/deployments instead of where they specified.

       

      Is there a better/more up-to-date set of instructions on how to do this?

       

      I've been searching all over and tried lots of things, but no luck, so here goes.

       

      I get an error about ConnectionFactory already registered when I do: standalone.sh -c standalone-full.xml

      I've looked through config and don't understand where the duplicate is coming from.

       

      standalone-full.xml attached.

       

       

      09:26:26,993 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-2) JBAS010406: Registered connection factory java:/activemq/ConnectionFactory                                                                              
      09:26:26,994 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-2) JBAS010406: Registered connection factory java:/activemq/ConnectionFactory                                                                              
      09:26:26,997 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.ra.deployment."activemq-ra.rar_1": org.jboss.msc.service.StartException in service jboss.ra.deployment."activemq-ra.rar_1": org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [activemq-ra]                                                                                                                      
          at org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:127)                                                                                           
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]                                                                                        
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]                                                                                                 
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_11]                                                                                                                            
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_11]                                                                                                                            
          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]                                                                                                                                                                      
      Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [activemq-ra]                                                                                                           
          at org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:111)                                                                                           
          ... 5 more                                                                                                                                                                                                                      
      Caused by: org.jboss.jca.deployers.common.DeployException: IJ020056: Deployment failed: file:/opt/jboss-as-7.1.1.Final/standalone/deployments/activemq-ra.rar/                                                                          
          at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:2186)                                                                                        
          at org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer.doDeploy(ResourceAdapterXmlDeploymentService.java:178)                                                                       
          at org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:104)                                                                                           
          ... 5 more

      Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.connector.connection-factory.java:/activemq/ConnectionFactory is already registered

          at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at org.jboss.as.connector.metadata.deployment.AbstractResourceAdapterDeploymentService$AbstractAS7RaDeployer.bindConnectionFactory(AbstractResourceAdapterDeploymentService.java:269)
          at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1956)
          ... 7 more

       

      09:26:27,006 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "activemq-ra.rar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.ra.deployment.\"activemq-ra.rar_1\"" => "org.jboss.msc.service.StartException in service jboss.ra.deployment.\"activemq-ra.rar_1\": org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [activemq-ra]"}}

      09:26:27,007 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:  service jboss.ra.deployment."activemq-ra.rar_1": org.jboss.msc.service.StartException in service jboss.ra.deployment."activemq-ra.rar_1": org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [activemq-ra]