CXF without Spring

Maurice Perry picture Maurice Perry · Mar 27, 2009 · Viewed 20.4k times · Source

Is it possible to use CXF with Tomcat and without Spring? If so, how?

Answer

user175004 picture user175004 · Sep 17, 2009

You can configure CXF programmatically without Spring. See the code examples here. Putting the web application context path together with the end point extension--Greeter in the code example--will display a summary page in the browser with a link to the WSDL.

No Spring necessary, giving CXF a very small footprint. I found the only jars necessary to be (for CXF 2.2.1):

  • XmlSchema-1.4.5.jar
  • cxf-2.2.3.jar
  • wsdl4j-1.6.2.jar

I believe neethi-2.0.4.jar may also be necessary for some configurations, but I haven't needed it.

Have fun!