[
https://issues.jboss.org/browse/AS7-3090?page=com.atlassian.jira.plugin.s...
]
Richard Opalka commented on AS7-3090:
-------------------------------------
With JBossWS 4.0.0 there's the following restriction:
There cannot coexist two archives containing webservices
with same name but different extension. This restriction
was introduced since JBoss 6.0 days.
If there are two archives with same name, e.g. X.jar & X.war
and both of these archives contain webservices, then
either X.jar or X.war have have to customize its context root.
Context root can be customized using the following approaches:
1) For X.war users can provide WEB-INF/jboss-web.xml (context-root element).
2) For X.jar users can provide META-INF/jboss-webservices.xml (context-root element)
(introduced in AS 7.1)
3) Customize context root for X.war in application.xml.
4) Rename either X.jar to Y.jar or X.war to Y.war
org.jboss.msc.service.DuplicateServiceException when starting EAR
that contains X.war and X.jar
-----------------------------------------------------------------------------------------------
Key: AS7-3090
URL:
https://issues.jboss.org/browse/AS7-3090
Project: Application Server 7
Issue Type: Bug
Components: Web Services
Affects Versions: 7.1.0.Beta1b
Environment: Fedora 16 64b Java 1.7.0
Reporter: Will Reichert
Assignee: Richard Opalka
I am attempting to deploy the SpecJEnterprise ear on a new build of the 7.1 master (built
from source) and am encountering the following exception stack:
12:31:35,178 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed
to start service
jboss.deployment.subunit."specj.ear"."specj.jar".INSTALL:
org.jboss.msc.service.StartException in service
jboss.deployment.subunit."specj.ear"."specj.jar".INSTALL: Failed to
process phase INSTALL of subdeployment "specj.jar" of deployment
"specj.ear"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
[jboss-as-server-7.1.0.CR1-SNAPSHOT.jar:]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
[jboss-msc-1.0.1.GA.jar:]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
[jboss-msc-1.0.1.GA.jar:]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[:1.7.0_b147-icedtea]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[:1.7.0_b147-icedtea]
at java.lang.Thread.run(Thread.java:722) [:1.7.0_b147-icedtea]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to
add JBoss web deployment service
at
org.jboss.as.web.deployment.WarDeploymentProcessor.processDeployment(WarDeploymentProcessor.java:269)
at
org.jboss.as.web.deployment.WarDeploymentProcessor.deploy(WarDeploymentProcessor.java:104)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
[jboss-as-server-7.1.0.CR1-SNAPSHOT.jar:]
... 5 more
Caused by: org.jboss.msc.service.DuplicateServiceException: Service
jboss.web.deployment.default-host./specj.realm is already registered
at
org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154)
[jboss-msc-1.0.1.GA.jar:]
at
org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:226)
[jboss-msc-1.0.1.GA.jar:]
at
org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560)
[jboss-msc-1.0.1.GA.jar:]
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201)
[jboss-msc-1.0.1.GA.jar:]
at
org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2211)
[jboss-msc-1.0.1.GA.jar:]
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201)
[jboss-msc-1.0.1.GA.jar:]
at
org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2211)
[jboss-msc-1.0.1.GA.jar:]
at
org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307)
[jboss-msc-1.0.1.GA.jar:]
at
org.jboss.as.web.deployment.WarDeploymentProcessor.processDeployment(WarDeploymentProcessor.java:224)
... 7 more
Specj.ear contains the following files:
jar -tf specj.ear
META-INF/
META-INF/MANIFEST.MF
specj.war
supplier.war
specj.jar
META-INF/application.xml
lib/
lib/generated-ws-buyer.jar
--
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