mymobile 发表于 2013-2-7 21:20:07

log4j:ERROR LogMananger.repositorySelector was null

排除log4j版本问题后,仍出现此问题,解决方法:在Tomcat安装目录下conf/catalina.properties文件中设置org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false。
去Tomcat网站上查看了它的含义:
http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html
If true, Tomcat attempts to null out any static or final      fields from loaded classes when a web application is stopped as a work      around for apparent garbage collection bugs and application coding errors.      
There have been some issues reported with log4j when this option is      true.
Applications without memory leaks using recent JVMs should operate      correctly with this option set to false.
If not specified, the default value of true will be used.      
 
页: [1]
查看完整版本: log4j:ERROR LogMananger.repositorySelector was null