Tomcat没法启动,报错java.lang.NoClassDefFoundError: or...

今天使用Tomcat 7 时,发现Tomcat没法启动,

报错java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory 

觉得是tomcat lib下缺失那个jar,经在http://grepcode.com查询,是tomcat-juli.jar java

下载后,放在tomcat lib下,但是问题依旧。 apache

经google后,发现解决方案: tomcat

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.
google

原来这个tomcat-juli.jar文件在tomcat的bin目录中。

也就是把tomcat-juli.jar加在Servers->tomcat 6->paths中 spa

从新启动tomcat,问题解决。 code

相关文章
相关标签/搜索