Deployment fail for application with multiple `org.jboss.msc.service.ServiceActivator` descriptors

Solution Verified - Updated -

Issue

  • If multiple modules in an EAR file contain a descriptor org.jboss.msc.service.ServiceActivator the deployment fail. If only one module contain it the application can be deployed
  • An application with services will fail to deploy with the following Exception
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.subunit."jboss-cluster-ha-singleton.ear"."ejb.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss-cluster-ha-singleton.ear"."ejb.jar".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "ejb.jar" of deployment "jboss-cluster-ha-singleton.ear"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [jboss-as-server-7.5.8.Final-redhat-2.jar:7.5.8.Final-redhat-2]
    ...
Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.wfink.ha.singleton.serviceGroupGROUP_1.service is already registered
    at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:158) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
    ...

ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.subunit."jboss-cluster-ha-singleton.ear"."ejb3.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss-cluster-ha-singleton.ear"."ejb3.jar".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "ejb3.jar" of deployment "jboss-cluster-ha-singleton.ear"
    ...
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: org.jboss.msc.service.DuplicateServiceException: Service jboss.quickstart.ha.singleton.timer.service is already registered
    at org.jboss.as.server.deployment.service.ServiceActivatorProcessor.deploy(ServiceActivatorProcessor.java:87) [jboss-as-server-7.5.8.Final-redhat-2.jar:7.5.8.Final-redhat-2]
    ... 5 more
Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.quickstart.ha.singleton.timer.service is already registered
    ...

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content