启动apache tomcat,出现:
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\apach
e-tomcat-6.0.35\logs\catalina.2012-07-21.log (拒绝访问。)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
at org.apache.juli.FileHandler.openWriter(FileHandler.java:374)
at org.apache.juli.FileHandler.<init>(FileHandler.java:99)
at org.apache.juli.FileHandler.<init>(FileHandler.java:90)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLo
gManager.java:515)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLo
gManager.java:460)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLo
gManager.java:286)
at java.util.logging.LogManager$2.run(LogManager.java:285)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.j
ava:283)
at java.util.logging.LogManager.getLogManager(LogManager.java:266)
at java.util.logging.Logger.<init>(Logger.java:252)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1136)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1133)
at java.util.logging.LogManager$1.run(LogManager.java:198)
at java.security.AccessController.doPrivileged(Native Method)
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
)
请问这是怎么了???
------解决方案--------------------
当遇到 拒绝访问。的时候 首先看看该文件路径下文件是否存在,然后 看看权限~~改下
------解决方案--------------------
没有文件的访问权限,检查一下用户的登陆权限,再看一下目录下到底有没有那个文件,还有就是log文件有没有被其他程序使用