我正在使用Apache Tomcat-8,每当我启动服务器时它都在运行但是在控制台中我得到了#34;无法打开访问日志文件"如何恢复此错误?以下是控制台中显示错误详细信息的部分:
Dec 16, 2016 7:29:43 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2628 ms
Dec 16, 2016 7:29:43 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Dec 16, 2016 7:29:43 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.30
Dec 16, 2016 7:29:43 PM org.apache.catalina.valves.AccessLogValve open
SEVERE: Failed to open access log file [C:\Program Files\apache-tomcat-8.0.30\logs\localhost_access_log.2016-12-16.txt]
java.io.FileNotFoundException: C:\Program Files\apache-tomcat-8.0.30\logs\localhost_access_log.2016-12-16.txt (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.apache.catalina.valves.AccessLogValve.open(AccessLogValve.java:579)
at org.apache.catalina.valves.AccessLogValve.startInternal(AccessLogValve.java:609)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:170)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:930)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:871)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)