Dear Bert, It seems that you are registering both services using the same address... I think you could check the properties that you are using while registering the services. Each one should have its own address.
Best regards, Fábio On Tue, Feb 14, 2012 at 7:35 PM, jbert <[email protected]> wrote: > I have two services in my OSGi service registry, each registered with its > own > interface. > > If I start the services one by one, the first exports fine. > > As soon as I start the second, the DOSGi component picks it up, does some > work and then causes this exception: > > 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) > > > Does anyone have an idea what to do to work around this issue? > > Remember that this is DOSGi I'm talking about - all the CXF setup is > handled > by that component. It is likely it didn't catch up with some change in the > CXF library, or that I'm missing something like an extra deployment > descriptor. > > > With best regards, > > Bert > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/CXF-DOSGI-Won-t-Export-Multiple-Services-tp5484165p5484165.html > Sent from the cxf-user mailing list archive at Nabble.com. > -- Fábio
