解决LOG4J:ERROR Failed to rename的问题
2016-10-28 16:28
399 查看
我今天做项目的时候遇到了这个问题,导致了昨天的文件清空,然后重新生成了初始名字的log日志。
后来查看了很多文章后,发现是日志文件被占用的问题。
网上有两种解决方式,一种是解决被占用的问题。这种我没有试过。
另外一种就是修改源码,对rename那段代码修改成copy等等。
见:http://blog.csdn.net/buoll/article/details/17389827
原谅我过于小白,网上下不到源码,下了发现和项目里的那些class文件对不上号。无奈就去下了一个已经修改完的log4j.jar
附上文件:https://pan.baidu.com/s/1boJLzZp
后来查看了很多文章后,发现是日志文件被占用的问题。
网上有两种解决方式,一种是解决被占用的问题。这种我没有试过。
另外一种就是修改源码,对rename那段代码修改成copy等等。
见:http://blog.csdn.net/buoll/article/details/17389827
原谅我过于小白,网上下不到源码,下了发现和项目里的那些class文件对不上号。无奈就去下了一个已经修改完的log4j.jar
附上文件:https://pan.baidu.com/s/1boJLzZp
相关文章推荐
- 解决 log4j:ERROR Failed to rename,不需要修改源码。同时解决工程重复加载的问题。
- log4j:ERROR Failed to rename错误解决办法
- Tomcat6下Log4j的log4j:ERROR Failed to rename错误解决办法
- Loadrunner:error -86401 Failed to connceted xxx.xxx.xxx.xxx:25问题解决
- 问题的解决: android sdk 2.1 update中Failed to rename directory
- log4j:ERROR Failed to load driver问题
- Git学习 -- 远程操作遇到error: failed to push some refs to问题解决方法
- 解决android Failed to rename directory 问题
- "error: failed to attach to process ID 0"问题解决
- 解决NGINX+PHP-FPM failed to ptrace(PEEKDATA) Input/output error出错问题
- 问题的解决: android sdk 2.1 update中Failed to rename directory
- Error: Execution failed for task ':app:clean'. Unable to delete file问题解决
- Android 2.1 安装时Failed to rename directory的问题解决
- Android SDK版本问题: conversion to dalvik format failed with error 1的解决办法
- Conversion to Dalvik format failed with error 1 问题解决
- Conversion to Dalvik format failed with error 1 解决问题
- log4j:ERROR Failed to rename
- 解决android Failed to rename directory 问题
- log4j:ERROR Failed to rename
- 解决NGINX+PHP-FPM failed to ptrace(PEEKDATA) Input/output error出错问题