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:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 1 more
网上查找了下原因,才发现在调用的时候需要加入tomcat-juli.jar这个包,tomcat7此包位于tomcat根目录的bin下。具体操作步骤是:首选项--tomcat--tomtca6.x--path 第一个选项中加入这个包。或者通过build path导入该jar包。
重启tomcat,OK
-------------------------------------------------------------------------------------
转载自:https://blog.csdn.net/yixiaoping/article/details/9988635