Today, after installing Tomcat7.0.21, it is OK to start the Web service separately with D:\apache-tomcat-7.0.21\bin\startup.bat. However, after you have integrated configuration Tomcat7 in MyEclipse8.5, the following error message appears when you start the Tomcat service in MyEclipse:
Exception in thread "main" java.lang.noclassdeffounderror:org/apache/juli/logging/logfactory
At Org.apache.catalina.startup.Bootstrap. (bootstrap.java:54)
caused by:java.lang.ClassNotFoundException:org.apache.juli.logging.LogFactory
At Java.net.urlclassloader$1.run (urlclassloader.java:217)
At java.security.AccessController.doPrivileged (Native Method)
At Java.net.URLClassLoader.findClass (urlclassloader.java:205)
At Java.lang.ClassLoader.loadClass (classloader.java:323)
At Sun.misc.launcher$appclassloader.loadclass (launcher.java:294)
At Java.lang.ClassLoader.loadClass (classloader.java:268)
At Java.lang.ClassLoader.loadClassInternal (classloader.java:336)
... 1 more
Could not find the main class:org.apache.catalina.startup.Bootstrap. Program would exit.
Second, the solution:
Solve the problem by doing the following: Myeclipse->window->preferences->myeclipse->servers->tomcat->tomcat 6.x-> Laucch->create Launch configuration->classpath->bootstrap entities->add External jars-> Select and add D:\ Apache-tomcat-7.0.21\bin\tomcat-juli.jar is OK!
MyEclipse8.5 startup error when integrating TOMCAT7: Exception in Thread "main" Java.lang.NoClassDefFoundError org/apache/commons/logging /logfactory