在此文件 localhost_access_log.2014-08-30.txt 上出现访问被拒绝的 apache tomcat 错误? [英] Got apache tomcat error that access denied on this file localhost_access_log.2014-08-30.txt?

查看:19
本文介绍了在此文件 localhost_access_log.2014-08-30.txt 上出现访问被拒绝的 apache tomcat 错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 7 操作系统上安装了 Apache tomcate.我刚刚安装了 apache 并使其在 eclipse 中可用.当我在服务器上运行任何简单的应用程序时,它会说 404: page not found 并且在控制台中它会打印这样的错误消息.

I installed Apache tomcate on Windows 7 OS. I just installed apache and make it available in eclipse. When i run any simple application on server it will say 404: page not found and in console it will print the error message like this.

SEVERE: Failed to open access log file [C:\Program Files\Apache Software           Foundation\Tomcat 7.0\logs\localhost_access_log.2014-08-30.txt]
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat      7.0\logs\localhost_access_log.2014-08-30.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:1117)
at org.apache.catalina.valves.AccessLogValve.startInternal(AccessLogValve.java:1224)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:185)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1137)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
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)

我不明白这是怎么回事???请帮帮我.

I cannot understand what the things is happen is this??? Please help me.

推荐答案

您当前的用户似乎没有 tomcat 文件夹的权限.

It seems that your current user is not having rights on the tomcat folder.

我也遇到了同样的问题,通过在 tomcat 文件夹中授予登录用户权限来解决它.

I also faced the same problem and solved it by giving rights to the logged in user on the tomcat folder.

对于你的情况:

转到>>C:\Program Files\Apache Software Foundation\Tomcat 7.0"文件夹右键单击>>属性>>安全选项卡

Go to >>"C:\Program Files\Apache Software Foundation\Tomcat 7.0" folder Right Click>>Properties>>security Tab

为当前登录的用户提供所需的权限.

provide required rights to currently logged in user.

这篇关于在此文件 localhost_access_log.2014-08-30.txt 上出现访问被拒绝的 apache tomcat 错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆