HTTP Status 500 - Servlet.init() for servlet CXFServlet threw exception

版权声明:本文转载自 张晨的博客(http://blog.csdn.net/zc123456zzc), 转载请保留本声明! https://blog.csdn.net/zc123456zzc/article/details/46939845
 

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

猜你喜欢

转载自blog.csdn.net/zc123456zzc/article/details/46939845