Baljit Singh [
http://community.jboss.org/people/mrbaljit] created the discussion
"DuplicateServiceException on JMS"
To view the discussion, visit:
http://community.jboss.org/message/616884#616884
--------------------------------------------------------------
Hi ,
I am using <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"> to
configure activemq queues. During server startup, I am getting
Caused by: org.jboss.msc.service.DuplicateServiceException: Service
jboss.connector.connection-factory.java:/jms/mopsQueueConnectionFactory2 *is already
registered*
More Error Info :
11:41:12,431 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed
to start service jboss.raxml.activemq-rar: org.jboss.msc.service.StartException in service
jboss.raxml.activemq-rar: org.jboss.msc.service.StartException in anonymous service:
Failed to start RA deployment [activemq-rar]
at
org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:106)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at
org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_24]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_24]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
Caused by: org.jboss.msc.service.StartException in anonymous service: Failed to start RA
deployment [activemq-rar]
at
org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:98)
... 5 more
Caused by: org.jboss.jca.deployers.common.DeployException: IJ020056: Deployment failed:
file:/C:/Temp/jboss-as-7.0.0.Final/standalone/deployments/activemq-rar.rar/
at
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1778)
at
org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer.doDeploy(ResourceAdapterXmlDeploymentService.java:140)
at
org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:96)
... 5 more
*Caused by: org.jboss.msc.service.DuplicateServiceException: Service
jboss.connector.connection-factory.java:/jms/mopsQueueConnectionFactory2 is already
registered*
at
org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154)
at
org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:226)
at
org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560)
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201)
at
org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2194)
at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307)
at
org.jboss.as.connector.metadata.deployment.AbstractResourceAdapterDeploymentService$AbstractAS7RaDeployer.bindConnectionFactory(AbstractResourceAdapterDeploymentService.java:229)
at
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1563)
... 7 more
11:41:12,478 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2)
Deployment of "activemq-rar.rar" was rolled back with failure message
{"Failed services" => {"jboss.raxml.activemq-rar" =>
"org.jboss.msc.service.StartException in service jboss.raxml.activemq-rar:
org.jboss.msc.service.StartException in anonymous service: Failed to start RA deployment
[activemq-rar]"}}
Thanks
Baljit
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/616884#616884]
Start a new discussion in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]