On Wed, Feb 15, 2012 at 12:10 AM, Fabio souza [via CXF] < [email protected]> wrote:
> 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. > > Thanks for your reply. As I said, all of the registration process is handled by DOSGi; the only property I can pass is "org.apache.cxf.ws.httpservice.context" which I set to "/foor" or "/bar" for the first respectively the second service. I think I've found the problem though. DOSGi assumes that it can create multiple CXF servlets and get away with re-using the address (it is always set to "/"). Now it turns out that CXF has a singleton with a registry which contains all HTTP destinations. This is unaware of the actual servlet these destinations are bound to, and hence triggers the exception above. I'll raise an issue in DOSGi and post another message on the CXF-dev list to see what they thinks about multiple CXF servlets. With best regards, Bert -- View this message in context: http://cxf.547215.n5.nabble.com/CXF-DOSGI-Won-t-Export-Multiple-Services-tp5484165p5485433.html Sent from the cxf-user mailing list archive at Nabble.com.
