[jbossws-issues] [JBoss JIRA] (JBWS-3568) Registering endpoints with EndpointPublisher using same context results in DuplicateServiceException

Magesh Bojan (JIRA) jira-events at lists.jboss.org
Tue Dec 18 00:41:08 EST 2012


     [ https://issues.jboss.org/browse/JBWS-3568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Magesh Bojan reopened JBWS-3568:
--------------------------------



There is a regression after the PR. Now the new fixed Servlet shows this in the log{noformat}11:02:51,356 INFO  [org.jboss.web] (ServerService Thread Pool -- 65) JBAS018210: Register web context: /sample
11:02:51,372 INFO  [org.jboss.ws.cxf.metadata] (ServerService Thread Pool -- 65) JBWS024061: Adding service endpoint metadata: id=HelloWebService
 address=http://localhost:8080/ws/HelloWebService
 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]
11:02:51,419 INFO  [org.jboss.ws.cxf.metadata] (ServerService Thread Pool -- 65) JBWS024061: Adding service endpoint metadata: id=HeyWebService
 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]
11:02:51,465 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (ServerService Thread Pool -- 65) Creating Service {http://test}HeyWebService from class org.jboss.servlet.hello.BaseWebService
11:02:51,497 INFO  [org.apache.cxf.endpoint.ServerImpl] (ServerService Thread Pool -- 65) Setting the server's publish address to be http://localhost:8080/ws/HelloWebService
11:02:51,512 INFO  [org.jboss.ws.cxf.deployment] (ServerService Thread Pool -- 65) 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
11:02:51,512 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (ServerService Thread Pool -- 65) Creating Service {http://test}HeyWebService from class org.jboss.servlet.hello.BaseWebService
11:02:51,528 INFO  [org.apache.cxf.endpoint.ServerImpl] (ServerService Thread Pool -- 65) Setting the server's publish address to be http://localhost:8080/ws/HeyWebService
11:02:51,544 INFO  [org.jboss.ws.cxf.deployment] (ServerService Thread Pool -- 65) 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{noformat}

Although the address and id are different, notice the port and service names are same.
                
> 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
>            Assignee: Richard Opalka
>             Fix For: jbossws-cxf-4.1.1
>
>         Attachments: hello.zip, HelloWorldServlet.java, HelloWorldServlet.java-fix
>
>
> 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


More information about the jbossws-issues mailing list