Configuring Tomcat in Eclipse to encounter server Tomcat v6.0 server at localhost failed to start issues

Source: Internet
Author: User

The console printing exception is as follows:

Exception in thread "main" java.lang.noclassdeffounderror:org/apache/juli/logging/logfactory at Org.apache.catalina.startup.Bootstrap.<clinit> (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)  ... 1Morecould not find the mainclass: Org.apache.catalina.startup.Bootstrap. Program would exit.

The main lack of tomcat-juli.jar.

Workaround:

1. In Eclipse, Open the "Server" tab.
2. Double Click on the ' Tomcat6 ' entry to see the configuration.
3. Then click on the ' Open launch configuration ' link in the ' General Information ' block.

      
4. In the dialog, select the "Classpath" tab.
5. Click the "ADD external jar" button.
6. Select the file "D:/developtools/server/eclipse/apache-tomcat-6.0.36/bin/tomcat-juli.jar"

      
7. Close the dialog.
8. Start Tomcat 6 from Eclipse.

Configuring Tomcat in Eclipse to encounter server Tomcat v6.0 server at localhost failed to start issues

Related Article

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.