[jboss-jira] [JBoss JIRA] (AS7-4150) DuplicateServiceException when deploying application a second time with different name, ServiceName not including EAR-name

Frank Langelage (JIRA) jira-events at lists.jboss.org
Tue Mar 13 19:01:47 EDT 2012


    [ https://issues.jboss.org/browse/AS7-4150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676577#comment-12676577 ] 

Frank Langelage commented on AS7-4150:
--------------------------------------

Source file: jboss-as/web/src/main/java/org/jboss/as/web/deployment/WarDeploymentProcessor.java
Changing the name building to
                final ServiceName jaccServiceName;
                if (deploymentUnit.getParent() != null) {
                    jaccServiceName = JaccService.SERVICE_NAME.append(deploymentUnit.getParent().getName() + "." + deploymentUnit.getName());
                } else {
                    jaccServiceName = JaccService.SERVICE_NAME.append(deploymentUnit.getName());
                }
seems to have solved the problem for me.
                
> DuplicateServiceException when deploying application a second time with different name, ServiceName not including EAR-name
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AS7-4150
>                 URL: https://issues.jboss.org/browse/AS7-4150
>             Project: Application Server 7
>          Issue Type: Bug
>    Affects Versions: 7.1.1.Final
>            Reporter: Frank Langelage
>         Attachments: prod.ear, test.ear
>
>
> See also forum reference.
> Deployed ear-file with same structure and modules twice, only different persistence.xml because of database name.
> This gives an error with cause
> Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.security.jacc."ws-core.war" is already registered         
> As you can see, the name of the module is only build of the module within the ear itself, the ear name itself is not used.
> Neither the file name of the ear itself nor the application-name from application.xml file.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list