得到apache tomcat错误,访问被拒绝这个文件localhost_access_log.2014-08-30.txt? [英] Got apache tomcat error that access denied on this file localhost_access_log.2014-08-30.txt?

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

问题描述

我在Windows 7操作系统上安装了Apache tomcate。我刚安装了apache并在eclipse中使用它。当我在服务器上运行任何简单的应用程序时,它会说404:找不到页面,在控制台中它会打印出这样的错误信息。

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.

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

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