MyEclipse8.5 Integrated TOMCAT7

Source: Internet
Author: User

I recently needed to use TOMCAT7 in MyEclipse, I have configured the local Tomcat path in servers, and then I publish the item, and the following error message appears when I 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.

Starting the Web service separately with D:\WorkSoft\apache-tomcat-7.0.62\bin\startup.bat is OK.

Workaround:
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:\ worksoft\apache-tomcat-7.0.62\bin\tomcat-jjar is OK, as follows:

MyEclipse8.5 Integrated TOMCAT7

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.