[ 
https://issues.apache.org/jira/browse/DOSGI-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423066#comment-13423066
 ] 

Sergey Beryozkin commented on DOSGI-110:
----------------------------------------

See r1365986.

Note we've had the greeter_rest demo actually exporting 2 HTTP-context bound 
services, but from a single bundle, and before updating DSW to support relative 
endpoint addresses in combination with HTTP contexts I confirmed it also worked 
with a 3rd service exported from another bundle.

However, most likely, I was simply not 'hitting' the path the service bundles 
you were testing were on. Despite that, I've updated DSW to support the 
relative endpoint addresses in combination with HTTP contexts, which is pretty 
much the way things work in CXF when say a single CXFServlet is deployed but 
multiple jaxws or jaxrs endpoints with different relative addresses are added.

For example, you can do: 

HTTP Context: "/service"
WS address: "/bar"

the full address will then become: http://host:port/service/bar.

So if you ever hit the issue like this one just differentiate further with 
relative endpoint addresses
 



                
> Unable to export multiple services
> ----------------------------------
>
>                 Key: DOSGI-110
>                 URL: https://issues.apache.org/jira/browse/DOSGI-110
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: Karaf 2.2.5, DOSGi multi-bundle, CXF 2.5.2 from DOSGi 
> multi-bundle, Aries transaction manager
>            Reporter: Bert Jacobs
>            Priority: Critical
>         Attachments: foobarservices.zip
>
>
> When I register more than one service, the second service will make the 
> following exception be printed to the console (this exception is nowhere 
> caught until it reaches the java.concurrent code):
> {quote}
> Exception in thread "pool-9-thread-4" java.lang.RuntimeException: Soap 1.1 
> endpoint already registered on address /
>         at 
> org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:862)
>         at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131)
>         at 
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:204)
>         at 
> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207)
>         at 
> org.apache.cxf.dosgi.dsw.handlers.HttpServiceConfigurationTypeHandler.createServer(HttpServiceConfigurationTypeHandler.java:173)
>         at 
> org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:247)
>         at 
> org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:72)
>         at 
> org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:67)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at 
> org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:66)
>         at 
> org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:38)
>         at 
> org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:267)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:679) 
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to