码迷,mamicode.com
首页 > 编程语言 > 详细

java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory

时间:2014-06-16 22:02:47      阅读:378      评论:0      收藏:0      [点我收藏+]

标签:myeclipse   tomcat7   

Myeclipse 8.6使用tomcat7时,运行javaweb项目报出如下错误:

java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
	at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60)
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	... 1 more
据说原因为目前的Myeclipse内核为Eclipse3.5.*不能直接支持tomcat7

解决办法:

1、更换tomcat7为tomcat6

2、添加apache-tomcat-7.0.42/bin/tomcat-juli.jar该jar包到tomcat的类路径中,如下图:

bubuko.com,布布扣



java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory,布布扣,bubuko.com

java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory

标签:myeclipse   tomcat7   

原文地址:http://blog.csdn.net/zxnlmj/article/details/30995647

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!