java.lang.NoClassDefFoundError:org / apache / juli / logging / LogFactory [英] java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory

查看:287
本文介绍了java.lang.NoClassDefFoundError:org / apache / juli / logging / LogFactory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实际上已经把这个问题搞清了,但是花了我几天时间,所以我以为我会把我的解决方案粘贴到别人旁边。

I have actually figured this problem out, but it took me days, so I thought I would paste my solution here to aide others.

我使用的是Fedora 11 ,在Eclipse中,我尝试添加一个Tomcat 6服务器并启动它。我会收到以下错误:

I am using Fedora 11, and in Eclipse I tried adding a Tomcat 6 server and starting it. I would get the following error:


'启动Tomcat v6.0服务器在本地主机'遇到问题。

'Starting Tomcat v6.0 Server at localhost' has encountered a problem.

服务器Tomcat v6.0服务器在localhost无法启动。

Server Tomcat v6.0 Server at localhost failed to start.

然后在我的控制台我得到以下内容:

Then in my console I got the following:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
  at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54)
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
  at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
  ... 1 more
Could not find the main class: org.apache.catalina.startup.Bootstrap. Program will exit.

我将在下面的答案中发布解决方案。

I'll post the solution in an answer below.

推荐答案

我在这里找到解决方案: http://forums.opensuse.org/applications/391114-tomcat6-eclipse-not-working.html

I found the solution here: http://forums.opensuse.org/applications/391114-tomcat6-eclipse-not-working.html



  1. 在Eclipse中,打开服务器选项卡。

  2. 双击Tomcat6条目查看配置。 >
  3. 然后单击常规信息块中的打开启动配置链接。

  4. 在对话框中,选择类路径选项卡。 li>
  5. 点击添加外部jar按钮。

  6. 选择文件/usr/share/tomcat6/bin/tomcat-juli.jar\"

  7. 关闭对话框

  8. 从Eclipse启动tomcat 6

  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.


希望在这里张贴,将有助于一些可怜的灵魂。

Hopefully posting it here will help some poor soul.

这篇关于java.lang.NoClassDefFoundError:org / apache / juli / logging / LogFactory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆