`
mymobile
  • 浏览: 183069 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

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.

 

分享到:
评论

相关推荐

    log4j-1.2.14.jar

    1.2.15有个Bug,会提示log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository,大家使用1.2.14替换1.2.15即可解决!

    struts2驱动包

    log4j:WARN Please initialize the log4j system properly. 2009-8-29 14:02:12 org.apache.catalina.core.ApplicationContext log 信息: Loading Spring root WebApplicationContext 2009-8-29 14:02:25 org.apache...

    JLink_Windows_V648.zip

    DLL: When using J-Trace PRO with IAR EWARM a "failed to allocate x bytes of memory" error could occur. Fixed. DLL: Windows: Renesas RX: When using FINE interface and disabling ongoining debug mode on ...

    结合telnet与ftp 功能服务器wasd第三版源码

    6 error return: the server side will print error message in /var/log/wasd.log, and the client side will print these to stderr 7 help message (h) 8 see server's log(logv) 9 edit remote file, ...

    sqlmap (懂的入)

    banner: '5.0.38-Ubuntu_0ubuntu1.1-log' 12、获取当前数据库,当前用户,所有用户,密码,所有可用数据库。 python sqlmap.py -u "http://192.168.1.47/page.php?id=1&cat=2" -- current-db current database...

    中小公司人事管理系统

    log.error("session开启失败"); throw e; } return s; } public static void closesession()throws Exception{ s=sessionThread.get(); try{ if(s!=null){ s.close(); sessionThread....

    出现问题a is defined高手帮忙

    DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 便民设施系统 ; charset=gbk"/> <link rel="stylesheet" type="text/css" href="style.css"> src=...

    Javascript 学习笔记 错误处理

    alert("An exception has occurred.Error was:\n\n" + error.message); } } (null);"> ``` 在这个例子中,`test` 函数尝试将输入值 `inVal` 转换为大写。然而,当点击按钮并调用 `test(null)` 时,由于 `...

    linux 下 结合ftp 和部分telnet 功能的服务器源码

    5 error return: the server side will print error message in /var/log/wasd.log, and the client side will print these to stderr ////////\\\\\\\ || Usage || \\\\\\\\/////// 0 make the server and ...

    ganymed-ssh2-build210.jar java远程访问linux服务器操作、上传下载文件

    protected static org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(ScpClient.class); static private ScpClient instance; private Connection conn; static synchronized public ...

    IBO 5.5.3 Build 2067

    It was getting a BCD Overflow error when the column value was NULL. I fixed a problem in the IB_Samples.pas unit that was causing programs to sometimes have an AV when the app was shutting down. ...

    BobBuilder_app

    4 5 4.95/5 - 56 votes μ 4.95, σa 1.05 [?] Is your email address OK? You are signed up for our newsletters but your email address is either unconfirmed, or has not been reconfirmed in a long time...

    reactnative-api-fetch:创建此存储库是为了在api中进行实践读取

    response.ok) throw new Error('Network response was not ok'); return response.json(); }) ``` 在React Native应用中,通常会将获取的数据绑定到组件的状态,以便渲染到界面上。例如: ```javascript class ...

    unity通过Php保存图片

    Debug.LogError("Error uploading image: " + www.error); } else { Debug.Log("Image uploaded successfully."); } } ``` 服务器端,我们需要一个PHP脚本来接收并处理上传的文件。在`upload.php`中,你可以...

    微软内部资料-SQL性能优化3

    [BULK-OP-LOG] – Bulk Operation Lock for Log Table Lock Sub-Resources: Full Table Lock (default) [UPD-STATS] – Update statistics Lock [COMPILE] – Compile Lock Index Lock sub-Resources: Full Index ...

    js分享PPT,公司内部培训用更新

    console.log("Button was clicked!"); }); ``` #### BOM 浏览器对象模型(BOM)提供了与浏览器窗口交互的API。 ```javascript window.alert("Hello, world!"); ``` ### JavaScript进阶 #### 模块化与CommonJS/...

    BIND-LINUX64位包

    causing garbage in log messages. [RT #34738] Address a race condition when shutting down a zone. [RT #34750] Address race condition with manual notify requests. [RT #34806] Fix nslookup crash ...

    Delphi7.1 Update

    TFMTBCDField initializes to size 8 instead of size 4, allowing the system to initialize precision to 7 and size to 8 (Quality Central 5938). * Using a TDBLookupComboBox to display a list of data given...

    component.request

    const [error, setError] = React.useState(null); useEffect(() => { fetch(url, config) .then(response => { if (!response.ok) { throw new Error('Network response was not ok'); } return response....

    JavaScript学习笔记

    console.log("There was an error: " + err.message); } ``` 综上所述,JavaScript 是一种强大的客户端脚本语言,它可以用来创建高度交互式的网页应用。通过掌握上述基础知识,可以有效地提高网页的功能性和用户...

Global site tag (gtag.js) - Google Analytics