報錯代碼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