qinxuanhui 2010-08-06 16:46
浏览 325
已采纳

MyEclipse8中配置Tomcat7出错

(毕业后一年多没有搞JAVA了,现在都很生疏,前不久买了本本了,现在想继续走JAVA开发这个方向,因为个人对这行非常爱好;并打算抓紧时间学习,争取在过年后,找一份JAVA开发相关工作,我相信自己的执著一定能成功的。但现在很迷茫,不知道怎么入手了,平时有时间就下载PDF书籍看,很希望能有一位老师指点迷津,感谢)

 

以下是问题:

 

开始我用MyEclipse8+tomcat6(安装版)配置启动正常,但后来我下载到tomcat7(压缩版),配置MyEclipse8时,就出现错误问题了。

 

Could not find the main class

org.apache.catalina.startup.Bootstrap.Program will exit.

 

详情见附件图片

(因为刚刚进入论坛,操作很笨拙,还请谅解!)

  • 写回答

11条回答 默认 最新

  • oyj7454103 2010-08-06 18:06
    关注

    我终于知道了!

    我去国外的网站 看了半天 找到真理了!

    [quote]

    Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
    at org.apache.catalina.startup.Bootstrap.(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.

    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.

    [/quote]

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(10条)

报告相同问题?

悬赏问题

  • ¥35 平滑拟合曲线该如何生成
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集