TOMCAT7 early out of the official version, but has not been used, especially for I have been in the use of Myeclipse6.5, it in the configuration of Tomcat when there is no tomcat7 option, so it reported the error message.
[Java]View Plaincopy
- Java.lang.noclassdeffounderror:org/apache/juli/logging/logfactory
- At Org.apache.catalina.startup.bootstrap.<clinit> (Bootstrap.java:)
- 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:)
- 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"
On the Internet to find the next reason, only to find in the call need to join Tomcat-juli.jar This package, TOMCAT7 this package is located under the Tomcat root directory of the bin. The procedure is: preference--tomcat--tomtca6.x--path the first option to include this package. Or, import the jar package from build path.
Restart Tomcat,ok
From: http://blog.csdn.net/yixiaoping/article/details/9988635
Solutions to Java.lang.ClassNotFoundException:org.apache.juli.logging.LogFactory