关于tomcat文件d:\Tomcat\apache-tomcat-7.0.67\logs\mmall.log (拒绝访问。)的问题
来源:5-15 logback配置讲解
慕数据5082587
2018-09-21
win系统之前启动tomcat似乎没有这样的报错,按照网上几种方法修改mmall.log文件的访问权限也没有效果,不太明白这是哪方面的报错,希望老师或者同学指点迷津!!!
23:22:50,625 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[mmall] - openFile(d:/Tomcat/apache-tomcat-7.0.67/logs/mmall.log,true) call failed. java.io.FileNotFoundException: d:\Tomcat\apache-tomcat-7.0.67\logs\mmall.log (拒绝访问。)
at java.io.FileNotFoundException: d:\Tomcat\apache-tomcat-7.0.67\logs\mmall.log (拒绝访问。)
at at java.io.FileOutputStream.open0(Native Method)
at at java.io.FileOutputStream.open(FileOutputStream.java:270)
at at java.io.FileOutputStream.(FileOutputStream.java:213)
at at ch.qos.logback.core.recovery.ResilientFileOutputStream.(ResilientFileOutputStream.java:28)
at at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:150)
at at ch.qos.logback.core.FileAppender.start(FileAppender.java:108)
at at ch.qos.logback.core.rolling.RollingFileAppender.start(RollingFileAppender.java:86)
at at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:96)
at at
1回答
-
polo哦
2018-09-21
java.io.FileNotFoundException: d:\Tomcat\apache-tomcat-7.0.67\logs\mmall.log (拒绝访问。)
你的文件确定是在这个文件夹吗,你的文件是不是只能通过管理员权限访问呢?你检查下这两点012018-09-22
相似问题