[
https://issues.jboss.org/browse/JBWS-3568?page=com.atlassian.jira.plugin....
]
Magesh Bojan commented on JBWS-3568:
------------------------------------
Hi Richard,
It is not *that* collision, I see these in my logs
{noformat}
19:59:30,349 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876:
Starting deployment of "HelloWorld-1.0.war"
19:59:30,896 INFO [org.jboss.ws.cxf.metadata] (MSC service thread 1-8) JBWS024061: Adding
service endpoint metadata: id=org.jboss.servlet.hello.BaseWebService
address=http://localhost:8080/sample/BaseWebService
implementor=org.jboss.servlet.hello.BaseWebService
invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker
serviceName={http://hello.servlet.jboss.org/}BaseWebServiceService
portName={http://hello.servlet.jboss.org/}BaseWebServicePort
wsdlLocation=null
mtomEnabled=false
properties=[org.jboss.as.webservices.metadata.modelComponentViewName -> service
jboss.deployment.unit."HelloWorld-1.0.war".component."org.jboss.servlet.hello.BaseWebService".VIEW."org.jboss.servlet.hello.BaseWebService"]
19:59:31,255 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC
service thread 1-8) Creating Service
{http://hello.servlet.jboss.org/}BaseWebServiceService from class
org.jboss.servlet.hello.BaseWebService
19:59:31,490 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-8) Setting
the server's publish address to be
http://localhost:8080/sample/BaseWebService
19:59:31,615 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-8) JBWS024074: WSDL
published to:
file:/C:/ESB/git/jboss-as/build/target/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/data/wsdl/HelloWorld-1.0.war/BaseWebServiceService.wsdl
19:59:31,615 INFO [org.jboss.as.webservices] (MSC service thread 1-7) JBAS015539:
Starting service jboss.ws.port-component-link
19:59:31,630 INFO [org.jboss.as.webservices] (MSC service thread 1-8) JBAS015539:
Starting service
jboss.ws.endpoint."HelloWorld-1.0.war"."org.jboss.servlet.hello.BaseWebService"
19:59:31,646 INFO [org.jboss.ws.common.management] (MSC service thread 1-8) JBWS022050:
Endpoint registered:
jboss.ws:context=sample,endpoint=org.jboss.servlet.hello.BaseWebService
19:59:31,662 INFO [org.jboss.web] (ServerService Thread Pool -- 55) JBAS018210: Register
web context: /sample
19:59:31,724 INFO [org.jboss.ws.cxf.metadata] (ServerService Thread Pool -- 55)
JBWS024061: Adding service endpoint metadata: id=org.jboss.servlet.hello.BaseWebService
address=http://localhost:8080/ws/HelloWebService
implementor=org.jboss.servlet.hello.BaseWebService
invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker
serviceName={http://test}HelloWebService
portName={http://test}HelloWebServicePort
wsdlLocation=null
mtomEnabled=false
properties=[org.jboss.as.webservices.metadata.modelComponentViewName -> null]
19:59:31,771 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean]
(ServerService Thread Pool -- 55) Creating Service {http://test}HelloWebService from class
org.jboss.servlet.hello.BaseWebService
19:59:31,787 INFO [org.apache.cxf.endpoint.ServerImpl] (ServerService Thread Pool -- 55)
Setting the server's publish address to be
http://localhost:8080/ws/HelloWebService
19:59:31,802 INFO [org.jboss.ws.cxf.deployment] (ServerService Thread Pool -- 55)
JBWS024074: WSDL published to:
file:/C:/ESB/git/jboss-as/build/target/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/data/wsdl/ws.deployment/HelloWebService.wsdl
19:59:31,818 INFO [org.jboss.as.webservices] (MSC service thread 1-4) JBAS015539:
Starting service
jboss.ws.endpoint."ws.deployment"."org.jboss.servlet.hello.BaseWebService"
19:59:31,833 INFO [org.jboss.ws.cxf.metadata] (ServerService Thread Pool -- 55)
JBWS024061: Adding service endpoint metadata: id=org.jboss.servlet.hello.BaseWebService
address=http://localhost:8080/ws/HeyWebService
implementor=org.jboss.servlet.hello.BaseWebService
invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker
serviceName={http://test}HeyWebService
portName={http://test}HeyWebServicePort
wsdlLocation=null
mtomEnabled=false
properties=[org.jboss.as.webservices.metadata.modelComponentViewName -> null]
19:59:31,833 INFO [org.jboss.ws.common.management] (MSC service thread 1-4) JBWS022050:
Endpoint registered: jboss.ws:context=ws,endpoint=org.jboss.servlet.hello.BaseWebService
19:59:31,880 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean]
(ServerService Thread Pool -- 55) Creating Service {http://test}HeyWebService from class
org.jboss.servlet.hello.BaseWebService
19:59:31,896 INFO [org.apache.cxf.endpoint.ServerImpl] (ServerService Thread Pool -- 55)
Setting the server's publish address to be
http://localhost:8080/ws/HeyWebService
19:59:31,896 INFO [org.jboss.ws.cxf.deployment] (ServerService Thread Pool -- 55)
JBWS024074: WSDL published to:
file:/C:/ESB/git/jboss-as/build/target/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/data/wsdl/ws.deployment/HeyWebService.wsdl
19:59:31,943 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/sample]]
(ServerService Thread Pool -- 55) JBWEB000289: Servlet Hello threw load() exception:
org.jboss.msc.service.DuplicateServiceException: Service
jboss.ws.endpoint."ws.deployment"."org.jboss.servlet.hello.BaseWebService"
is already registered
at
org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154)
{noformat}
Registering endpoints with EndpointPublisher using same context
results in DuplicateServiceException
----------------------------------------------------------------------------------------------------
Key: JBWS-3568
URL:
https://issues.jboss.org/browse/JBWS-3568
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: jbossws-integration
Environment: JBoss AS 7.2.0.Alpha1-SNAPSHOT "Steropes"
Reporter: Magesh Bojan
Priority: Critical
Attachments: hello.zip
Deploying attached sample creates the following error:
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/sample]]
(ServerService Thread Pool -- 55) JBWEB000289: Servlet Hello threw load() exception:
org.jboss.msc.service.DuplicateServiceException: Service
jboss.ws.endpoint."ws.deployment"."org.jboss.servlet.hello.BaseWebService"
is already registered
at
org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154)
at
org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227)
at
org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560)
at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307)
at
org.jboss.as.webservices.service.EndpointService.install(EndpointService.java:193)
at
org.jboss.as.webservices.deployers.EndpointServiceDeploymentAspect.start(EndpointServiceDeploymentAspect.java:50)
at
org.jboss.ws.common.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:131)
at
org.jboss.as.webservices.publish.EndpointPublisherImpl.publish(EndpointPublisherImpl.java:123)
at
org.jboss.as.webservices.publish.EndpointPublisherImpl.publish(EndpointPublisherImpl.java:102)
at
org.jboss.as.webservices.publish.EndpointPublisherImpl.publish(EndpointPublisherImpl.java:95)
at org.jboss.servlet.hello.HelloWorldServlet.init(HelloWorldServlet.java:78)
[classes:]
at javax.servlet.GenericServlet.init(GenericServlet.java:242)
[jboss-servlet-api_3.0_spec-1.0.2.Final.jar:1.0.2.Final]
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1194)
[jbossweb-7.2.0.Alpha5.jar:7.2.0.Alpha5]
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1100)
[jbossweb-7.2.0.Alpha5.jar:7.2.0.Alpha5]
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3591)
[jbossweb-7.2.0.Alpha5.jar:7.2.0.Alpha5]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3798)
[jbossweb-7.2.0.Alpha5.jar:7.2.0.Alpha5]
at
org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156)
[jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at
org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60)
[jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at
org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93)
[jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[rt.jar:1.6.0_30]
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
[rt.jar:1.6.0_30]
at java.util.concurrent.FutureTask.run(Unknown Source) [rt.jar:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
[rt.jar:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[rt.jar:1.6.0_30]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_30]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira