Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54)
I guess it might be a packaging issue.
To work it around, you need to add the tomcat-juli.jar to the run configuration class path.
Here are the steps how to do it:
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报NoClassDefFoundError解决方案
原创jj372765149 ©著作权
文章标签 职场 休闲 tomcat eclipse java 文章分类 Java 后端开发
-
Eclipse报Java heap space错误的解决方案
当运行大数量的数据时: (1) 如果是java 应用程序 run->run...’,选择
java 开发工具 数据库 标签页 数据