Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
3.3.1
-
None
-
None
Description
The servicemix-cxf-bc doesn't work inside a Tomcat server.
The problem is that the service destinations aren't found by the destination factory.
I think this problem isn't Tomcat specific. It should occur if servicemix is deployed as a war inside some application server.
I would suggest the following fix:
1.) Implement a ServletTransportFactory (see attachment 1)
2.) Register this ServletTransportFactory in the default cxf.xml (classpath root, see attachment 2)
It's important to note that one needs to configure the CXF default bus with org.apache.servicemix.web.cxf.CXFManagedServlet.
If one uses the spring based CXF configuration method, the servicemix-cxf-bc and the servlet will have different application contexts and thus it won't work.
Kind regrades
Christian