eclipse tomcat启动失败

报错代码

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory 

解决办法

一。说明:在Tomcat7,Tomcat6下面的bin有个tomcat-juli.jar文件添加到path中,重新启动Tomcat7.0.6,启动就行了,如图:
eclipse tomcat启动失败_第1张图片

二。

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.

你可能感兴趣的:(eclipse tomcat启动失败)