MyEclipse8.5 startup error when integrating TOMCAT7: Exception in Thread "main" Java.lang.NoClassDefFoundError org/apache/commons/logging/ Logfactory

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.