报错代码java
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory apache
解决办法tomcat
一。说明:在Tomcat7,Tomcat6下面的bin有个tomcat-juli.jar文件添加到path中,从新启动Tomcat7.0.6,启动就好了,如图:spa
二。orm
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.ip