1. 程式人生 > >Servlet.init() for servlet CXFServlet threw exception

Servlet.init() for servlet CXFServlet threw exception

   root cause

java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in URL [jar:file:/D:/Program%20Files/apache-tomcat-8.0.21/webapps/PCServer/WEB-INF/lib/cxf-2.1.9.jar!/META-INF/cxf/cxf.fixml]:

原因:專案中包含了兩個版本的cfx,因為在用myeclipse->add spring runtime dependencies 時,自動添加了cfx2.1.9
解決方法:把自己新增的cfx-3.1.1相關的jar檔案全部刪除