wood
发贴: 122
积分: 1
|
于 2009-03-18 11:04
在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?还是日志文件没有权限生产?
谢谢!
|