六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 150|回复: 0

log4j:ERROR LogMananger.repositorySelector was null

[复制链接]

升级  3.33%

11

主题

11

主题

11

主题

秀才

Rank: 2

积分
55
 楼主| 发表于 2013-2-7 21:20:07 | 显示全部楼层 |阅读模式
排除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.      
 
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表