Unable to promote multiple services as SOAP endpoints under the same context
Issue
We would like to publish two services at the following paths:
http://localhost:8080/mycontextpath/serviceA
http://localhost:8080/mycontextpath/serviceB
We configured the same contextpath in each soap binding (mycontextpath).
But the problem here is that we are able to deploy the first webservice but the second one fails with:
Caused by: java.lang.Exception: JBAS015527: Failed to create context
at org.jboss.as.webservices.publish.EndpointPublisherImpl.startWebApp(EndpointPublisherImpl.java:170)
at org.jboss.as.webservices.publish.EndpointPublisherImpl.publish(EndpointPublisherImpl.java:143)
at org.jboss.as.webservices.publish.EndpointPublisherImpl.publish(EndpointPublisherImpl.java:114)
at org.jboss.as.webservices.publish.EndpointPublisherImpl.publish(EndpointPublisherImpl.java:107)
at org.switchyard.as7.extension.ws.JBossWSEndpoint.publish(JBossWSEndpoint.java:124)
at org.switchyard.as7.extension.ws.JBossWSEndpointPublisher.publish(JBossWSEndpointPublisher.java:86)
... 11 more
Caused by: java.lang.IllegalArgumentException: JBWEB000250: Child container with name /mycontextpath already exists
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:794)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:353)
at org.jboss.as.webservices.publish.EndpointPublisherImpl.startWebApp(EndpointPublisherImpl.java:167)
... 16 more
Is this a limitation?
Environment
- Red Hat JBoss Fuse on EAP
- 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
