Start the Tomcat server on MyEclipse and the following problems occur:
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:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
I thought the jar package was not imported, so someone said:
There is a tomcat-juli.jar In the Tomcat bin directory that is introduced in the project. In eclipse, right-click the Project Build Path --> Configure Build Path --> Java Build Path --> Libraries --> Add External JARs.
This method can be imported, but it still does not work. It means an internal error occurs in the java Virtual Machine during startup.
Just now I found that I had a wrong Tomcat version.
I also saw a good article on the Internet to solve the error of Tomcat 7 startup,
Tomcat7.0 startup error: java. lang. noclassdeffounderrorgapachejulilogginglogfactory
Http://wenku.baidu.com/view/434e2cc60c22590102029d51.html
This article from the "Long Road, very short" blog, please be sure to keep this source http://10000001.blog.51cto.com/4600383/1302011