log4j:ERROR setFile(null,true) call failed;log4j.log (系统找不到指定的路径。)
2012-08-02 15:58
281 查看
1、是log4j.properties与tomcat的log4j重名的原因
你把/WEB-INF/classes/log4j.properties的log4j配置文件改个名字看(如:logConfig.properties)
因为在tomcat启动是默认去找log4j.properties,但此时Listener还没有起来,tomcat就要往\WEB-INF\logs\log4j.log 写日志就找不到了
2、把log4j.properties 移动到/WEN-INF/目录下。
你把/WEB-INF/classes/log4j.properties的log4j配置文件改个名字看(如:logConfig.properties)
因为在tomcat启动是默认去找log4j.properties,但此时Listener还没有起来,tomcat就要往\WEB-INF\logs\log4j.log 写日志就找不到了
2、把log4j.properties 移动到/WEN-INF/目录下。
相关文章推荐
- Log4J配置后, log4j:ERROR setFile(null,true) call failed. 报错:java.io.FileNotFoundException: /log/mytest2.log (系统找不到指定的路径。)
- log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: ..\logs\2010-1-19.log (系统找不到指定的路径。)
- VirtualBox Installation failed!error系统找不到指定的路径分析
- svn commit 时提示 Commit failed (details follow) Unable to create pristine install stream 系统找不到指定的路径
- SVN "Commit failed (details follow) Unable to create pristine install stream 系统找不到指定的路径"
- TortoiseSVN Launch Failed Error:系统找不到指定路径
- LIB环境变量中指定的搜索路径:“C:/Program Files/Microsoft Visual Studio/VC98/mfc/lib 系统找不到找定的路径的解决方法
- 在本地计算机上无法启动OracleOraDb10g_Home1TNSListener服务 错误3: 系统找不到指定的路径
- [caffe][db_lmdb.hpp:15] Check failed: mdb_status == 0 (3 vs. 0) 系统找不到指定的路径。
- ..\target\m2e-wtp\web-resources\META-INF\MANIFEST.MF (系统找不到指定的路径)解决办法
- Maven项目pom.xml文件报xxx\target\classes\META-INF\MANIFEST.MF (系统找不到指定的路径)问题
- Cocos2d-x--新建Cocos2d-x项目出现的问题--系统无法启动程序,系统找不到指定的路径
- pom.xml错误xxxx\target\classes\META-INF\MANIFEST.MF (系统找不到指定的路径。)
- svn commit 时提示 Commit failed (details follow) Unable to create pristine install stream 系统找不到指定的路径
- 在cmd里输入cd myclass 提示系统找不到指定路径
- “LIB 环境变量”中指定的搜索路径“D:\Program Files\Microsoft Visual Studio\VC98\lib”无效 --“系统找不到指定的路径
- 整理navicat遇到的问题(navicatdesignquery.sql.bak 系统找不到指定路径)
- 异常收集之:navicatdesignquery.sql.bak 系统找不到指定路径
- Visual Studio Publish 系统找不到指定的路径
- 在使用Win7时提示系统找不到指定路径的有效解决方法