xfire hibernate3.1 tomcat 运行的时候dom4j异常

(0 ms) [main] ERROR: org.codehaus.xfire.transport.http.XFireServlet#init : Error initializing XFireServlet.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.xfire.spring.ServiceBean#1' defined in class path resource [META-INF/xfire/services.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/dom4j/DocumentException
java.lang.NoClassDefFoundError: org/dom4j/DocumentException

 

解决办法:添加 dom4j-1.6.1.jar 到你的工程的lib里面,别忘了刷新(F5或者右击项目refresh)一下你的MyEclipse6.5里面的工程·····我的就是这样解决的···

 

你可能感兴趣的:(tomcat,Hibernate,exception,bean,MyEclipse,initialization)