HTTP Status 500 - 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文件全部删除

你可能感兴趣的:(exception)