gongtingting8
tinagong
2011-04-02 11:21
浏览 268
已采纳

IntelliJ中启动tomcat报错

最近在使用IntelliJ这个IDE开发工具,但是配置好了tomcat之后,启动tomcat时报错:
[color=red]cmd /c ""C:\Program Files\Java\jdk1.7.0\bin\java" "-Dcatalina.base=C:\Documents and Settings\Administrator.IntelliJIdea8x\system\tomcat\Unnamed_ajaxfff20552" "-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 7.0" "-Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 7.0\temp" -jar "C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\bootstrap.jar" start"
java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
at org.apache.catalina.startup.Bootstrap.(Bootstrap.java:55)
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:299)
at java.net.URLClassLoader$1.run(URLClassLoader.java:288)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:287)
at java.lang.ClassLoader.loadClass(ClassLoader.java:391)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:331)
... 1 more
Exception in thread "main" Disconnected from server[/color]

有哪位遇到过类似的问题,帮忙指点指点啊!

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • beneo
    beneo 2011-04-02 15:30
    已采纳

    Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory

    缺乏jar包

    此外,你居然用jdk1.7和tomcat7,可能两个都不稳定,建议你都换成6

    点赞 评论
  • qq1043292579
    qq1043292579 2011-04-02 18:30

    C:\Program Files\Java\jdk1.7.0\bin\java"

    这个是你的错误信息里面的。\bin后面怎么会有java?

    JDK环境变量配置有问题吧?
    JAVA_HOME 值 D:\java\jdk160
    path 里面加上 %JAVA_HOME%\bin 前面要有";"

    点赞 评论

相关推荐