Tomcat7.0启动:报错java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
?
下载Tomcat7.0后,和MyEclipse进行整合,MyEclipse配置Tomcat7.0如下图
发现在启动的时候报了一个错误
java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
????at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)
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:307)
????at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
????at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
????... 1 more
Exception in thread "main"
?
? 把bin/tomcat-juli.jar?下add tomcat classpath下,效果如下:
重新启动Tomcat7.0,发现启动成功。
?