Tomcat7.0 cannot be started in myeclipse or

Source: Internet
Author: User

Today, a tomcat version is available on the official website, but it is a green version. You do not need to install it and try to start it. However, no startup file is used.

I can see a solution for prawns on the Internet. It's a good solution. Share it with me.

 

 

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,

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 to start it! I don't know why.







Haha, I accidentally checked someone else's tomcat (though not tomcat7.0) Here. I opened the startup. BAT file in notepad and added the following sentence:

Set java_home = F:/program files/Java/jdk1.6.0 _ 24

(To put it simply, configure the JDK directory)

 

 

Double-click STARTUP. BAT to start it.

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.