[jboss-jira] [JBoss JIRA] (WFLY-2365) DuplicateServiceException when deploying ear containing jar and war with same name

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Mon Oct 28 09:46:02 EDT 2013


     [ https://issues.jboss.org/browse/WFLY-2365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Douglas reassigned WFLY-2365:
------------------------------------

    Assignee: Eduardo Martins  (was: David Lloyd)


Assigning to Eduardo, is it is related to concurrency. Proposed patch is no longer valid, due to existing code changes.

Basically the real problem is that these service names are not built by appending to the service name returned by DeploymentUnit.getServiceName(). In order to avoid conflicts all deployment related services (with very few exceptions such as global JNDI binding services) should be based on this.
                
> DuplicateServiceException when deploying ear containing jar and war with same name
> ----------------------------------------------------------------------------------
>
>                 Key: WFLY-2365
>                 URL: https://issues.jboss.org/browse/WFLY-2365
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: EE
>            Reporter: Alessio Soldano
>            Assignee: Eduardo Martins
>             Fix For: 8.0.0.CR1
>
>
> The following exception is thrown when deploying a EAR archive containing a war and jar with the same name (except for the file extension, of course).
> See https://community.jboss.org/thread/233648
>     2013-10-17 10:32:59,266 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.subunit."specj.ear"."specj.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."specj.ear"."specj.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "specj.jar" of deployment "specj.ear"  
>       at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.0.0.Beta2-SNAPSHOT.jar:8.0.0.Beta2-SNAPSHOT]  
>       at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1944) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]  
>       at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1877) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]  
>       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_40]  
>       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_40]  
>       at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]  
>     Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.concurrent.ee.context.config.specj.specj is already registered  
>       at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:158) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]  
>       at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:235) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]  
>       at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:767) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]  
>       at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]  
>       at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2384) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]  
>       at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]  
>       at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2384) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]  
>       at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:317) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]  
>       at org.jboss.as.ee.concurrent.deployers.EEConcurrentContextProcessor.setupConcurrentContext(EEConcurrentContextProcessor.java:110)  
>       at org.jboss.as.ee.concurrent.deployers.EEConcurrentContextProcessor.processModuleDescription(EEConcurrentContextProcessor.java:71)  
>       at org.jboss.as.ee.concurrent.deployers.EEConcurrentContextProcessor.deploy(EEConcurrentContextProcessor.java:54)  
>       at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.0.0.Beta2-SNAPSHOT.jar:8.0.0.Beta2-SNAPSHOT]  
>       ... 5 more  
>       
>       
>     2013-10-17 10:32:59,283 ERROR [org.jboss.as.controller.management-operation] (XNIO-1 task-3) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "specj.ear")]) - failure description: {  
>         "JBAS014671: Failed services" => {"jboss.deployment.subunit.\"specj.ear\".\"specj.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"specj.ear\".\"specj.jar\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment \"specj.jar\" of deployment \"specj.ear\"  
>         Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.concurrent.ee.context.config.specj.specj is already registered"},  
>         "JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"specj.ear\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"specj.ear\".beanmanager]"]  
>     }  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list