Tomcat cannot be started. Error: Java. Lang. noclassdeffounderror: ORG/Apache/Juli/logging/logfactory (zt)

Source: Internet
Author: User
Tomcat cannot be started. The following error occurs: Java. Lang. noclassdeffounderror: ORG/Apache/Juli/logging/logfactory.

15:58:46 | category: Tomcat | label: Juli Java Lang Apache org | font size subscription

Some time ago, I saw several beta versions of tomcat7.0 released. I didn't test it because it was not stable. Today I saw the news that the official version of tomcat7.0 has been released. I downloaded it on the official website to see how it works. <Xmlnamespace prefix = "O"/>

The following describes some new features of Tomcat 7:

◆ Tomcat 7 fully supports servlet 3.0 specifications

◆ Tomcat 7 added support for Java annotations

◆ Tomcat 7 dynamically configures the function of referencing class libraries through web. xml

◆ Tomcat 7 Improves secure session tracking

◆ Tomcat 7 improves the functions of the relational service so that the address can be configured when it is disabled

◆ Tomcat 7 has improved the startup class. Currently, no configuration files are required during Tomcat 7 startup.

◆ Configuration parameters are added for Tomcat 7, which can be used to configure the execution queue timeout time for Tomcat 7 and the execution limit is large or small.

... ...

New features facilitate and better support for new Java features. I feel that Tomcat 7's support for servlet3.0 and Java annotaion should be based on the need to popular 0 configurations or minimize configuration files. The arrival of servlet3.0, the most profound difference is that a servlet can be configured directly at the code level and does not need to be configured on the web. configured in XML.

Download tomcat7.0 and integrate it with myeclipse. Configure tomcat7.0 for myeclipse, as shown in figure

An error was reported during startup.

Java. Lang. noclassdeffounderror: ORG/Apache/Juli/logging/logfactory

At org. Apache. Catalina. startup. Bootstrap. <clinit> (Bootstrap. Java: 55)

Caused by: Java. Lang. classnotfoundexception: org. Apache. Juli. Logging. logfactory

At java.net. urlclassloader $ 1.run( urlclassloader. Java: 202)

At java. Security. accesscontroller. doprivileged (native method)

At java.net. urlclassloader. findclass (urlclassloader. Java: 190)

At java. Lang. classloader. loadclass (classloader. Java: 307)

At sun. Misc. launcher $ appclassloader. loadclass (launcher. Java: 301)

At java. Lang. classloader. loadclass (classloader. Java: 248)

... 1 more

Exception in thread "Main"

 

I searched the internet for a better solution. There is a website called Ghost.

Solutions

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 "/usr/share/tomcat6/bin/tomcat-juli.jar"
7. Close the dialog.
8. start Tomcat 6 from eclipse.

In fact, is the bin/tomcat-juli.jar under add Tomcat classpath, the effect is as follows:

Restart tomcat7.0 and check that the instance is successfully started.


Original article address

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.