Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Application Server » Tomcat  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Apache Tomcat/6.0.18中log4j的配置
wood





发贴: 122
积分: 1
于 2009-03-18 11:04 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
在ubuntu8.10的tomcat6上部署一个spring的应用,

SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListener
java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.LogManager
at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:354)
at org.springframework.util.Log4jConfigurer.initLogging(Log4jConfigurer.java:73)
at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:152)
at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:47)
。。。。。。

LogManager什么情况下会初始化失败?是没有读到log4j.properties?还是日志文件没有权限生产?

谢谢!



作者 Re:Apache Tomcat/6.0.18中log4j的配置 [Re:wood]
metadmin





发贴: 12
积分: 0
于 2009-03-20 08:32 user profilesend a private message to usersend email to metadminsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
log4j.jar 没有在 WEB-INF/lib目录下吧???


Metadmin Access Manager细粒度权限管理产品 http://www.metadmin.com http://blog.sina.com.cn/metadmin
作者 Re:Apache Tomcat/6.0.18中log4j的配置 [Re:metadmin]
YuLimin

简单就是美

版主


发贴: 866
积分: 123
于 2009-04-04 15:14 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.LogManager
at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:354)

没有找到这个类,你的log4j.jar与common-logging.jar都放进去WEB-INF/lib目录了吗?



 当兵不后悔!后悔不当兵! 
超越黎明时空,追逐时代潮流!
人,是要靠自己的!简单就是美!
我的Java:http://www.Java2Class.net
我的Blog:http://YuLimin.ItEye.com

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923