Myeclipse 8.6使用tomcat7时,运行javaweb项目报出如下错误:
java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60) Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 1 more据说原因为目前的Myeclipse内核为Eclipse3.5.*不能直接支持tomcat7
解决办法:
1、更换tomcat7为tomcat6
2、添加apache-tomcat-7.0.42/bin/tomcat-juli.jar该jar包到tomcat的类路径中,如下图:
java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory,布布扣,bubuko.com
java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
原文地址:http://blog.csdn.net/zxnlmj/article/details/30995647