MyEclipse8.5 integrated Tomcat 7 and tomcat 7

Source: Internet
Author: User

MyEclipse8.5 integrated Tomcat 7 and tomcat 7

Recently, I need to use Tomcat 7 in MyEclipse. I have configured the local Tomcat path in Servers, and then released the item. When I start the Tomcat service in MyEclipse, the following error message is displayed:

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
Cocould not find the main class: org. apache. catalina. startup. Bootstrap. Program will exit.

Use D: \ WorkSoft \ apache-tomcat-7.0.62 \ bin \ startup. bat to start the web Service normally.

Solution:
Follow these steps to solve the problem: MyEclipse-> Window-> Preferences-> MyEclipse-> Servers-> Tomcat 6. x-> Laucch-> Create Launch Configuration-> Classpath-> Bootstrap Entities-> Add External JARs-> select and AddD: \ WorkSoft \ apache-tomcat-7.0.62.\ Bin \ tomcat-jjar is OK, as follows:

 

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.