Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
10.1.0.Final, 11.0.0.Alpha1
-
None
Description
When deploying identically named POJO JAX-WS webservice endpoints into different virtualhosts with the same context, the ServiceName generated for the second deployment conflicts with the first one, and the deployment fails with org.jboss.msc.service.DuplicateServiceException.
This can be worked around by defining the endpoint as a servlet, and giving globally distinct <servlet-name> s to them.
I think the cause for the bug is that the ServiceName for the Endpoint is in a server instance namespace, but the the name is generated from only the endpoint name, and the context, which is not unique among deployments on different virtual hosts.
Adding the virtual host to the generated name would make the service name unique, and should also allow routing to it based on virtualhost info by web server.
In the test case the names could be for example jboss.ws.endpoint.vhost="hosta".context=."helloservice.endpoint.Hello" and jboss.ws.endpoint.vhost="hostb".context=."helloservice.endpoint.Hello" .