[jboss-jira] [JBoss JIRA] (WFLY-7643) JAX-WS Webservice endpoint naming conflict between different virtual hosts

István Tóth (JIRA) issues at jboss.org
Wed May 10 07:55:00 EDT 2017


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

István Tóth commented on WFLY-7643:
-----------------------------------

It seems that even vhost + context is not neccessarily unique, because multiple undertow servers can be defined that can have identical vhosts in them.

So it is possible that server name should be added to the endpoint name as well.

 i.e. jboss.ws.endpoint.server="default-server".vhost="hosta".context=."helloservice.endpoint.Hello"


> JAX-WS Webservice endpoint naming conflict between different virtual hosts
> --------------------------------------------------------------------------
>
>                 Key: WFLY-7643
>                 URL: https://issues.jboss.org/browse/WFLY-7643
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web Services
>    Affects Versions: 10.1.0.Final, 11.0.0.Alpha1
>            Reporter: István Tóth
>            Assignee: Alessio Soldano
>         Attachments: Hello.java, jboss-web.xml, vhost-config-fragment.xml
>
>
> 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"* .



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jboss-jira mailing list