Exception in thread “main” java.lang.NoClassDefFoundError org/apache/commons/logging/LogFactory

今天让做jxfp项目,用的myeclipse8.5+tomcat7,启动的时候报错:

Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
at org.apache.catalina.startup.Bootstrap.(Bootstrap.java:54) 
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory 

是缺少tomcat-juli.jar,于是引入,但还是不行,最后用这个解决了:

MyEclipse->Window->Preferences->MyEclipse->Servers->Tomcat->Tomcat 6.x->Laucch->Create Launch Configuration->Classpath->Bootstrap Entities->Add External JARs->选择并填加H:\apache-tomcat-7.0.21\bin\tomcat-juli.jar就OK啦!

 

如果还有问题,将Java EE 5 Libraries删掉再加进来试试。。。。。。。

posted @ 2016-07-05 17:44  暗夜心慌方  阅读(210)  评论(0编辑  收藏  举报