I have not seen that error before, but perhaps my WSDL-first sample can help you: http://www.jroller.com/gmazza/date/20080417. Note it has not been updated to CXF 2.1 yet (it's still on 2.0.6, but quite possibly would work as-is with 2.1.)
Glen 2008-05-19 Murthy Malekar wrote: > Hello, > I have setup CXF Webservice using HTTP Servlet > (org.apache.cxf.jaxws.servlet.CXFServlet) following the guidelines on the > site. > http://cwiki.apache.org/CXF20DOC/servlet-transport.html > > I am using Eclipse Europa 3.3.2, CXF 2.1, Tomcat 6.0.16. When I start the > web-app within Eclipse (or) outside from Tomcat, I get the following error - > Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager'. Basically > service/app isn't starting up. > > Please advise. Thanks for your help. Regards. > > ====ERROR==== > 16:31:20 ERROR context.ContextLoader - Context initialization failed > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource > [META-INF/cxf/cxf.xml]: Instantiation of bean failed; nested exception is > org.springframework.beans.BeanInstantiationException: Could not instantiate > bean > class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; > nested exception is java.lang.ClassCastException: class > org.apache.cxf.transport.jms.ClientBehaviorPolicyType > a
