Java – when deploying spring app in Tomcat 6, an “access denied” message appears

When I tried to deploy my spring application on Tomcat 6, I received an error message

java.util.logging.errormanager:4
java.io.filenotfoundexception: c:\program files\apache software foundation\tomcat 6.0\logs\catalina.2010.02.16.log <Access is denied>
  at java.io.fileoutputstream.openappend <native method>
  at java.io.fileoutputstream.<init><unkNown source>
  at java.io.filewriter.<init><unkNown source>
  at apache.juli.filehandler.open<filehandler.java:259>
  at apache.juli.filehandler.open<filehandler.java:59>
  at apache.juli.filehandler.open<filehandler.java:50>
  at sun.reflect.nativeconstructoraccessorImpl.newInstance0<native method>
  at sun.reflect.delegatingconstructoraccessorImpl.newInstance<unkNown source>
  at sun.reflect.constructor.newInstance<unkNown source>
  at java.lang.class.newinstance0<unkNown source>
  at org.apache.juli.classloaderlogmanager.readconfiguration<classloaderlogmanager.java:418>
  .....
  .....
  at java.util.logging.logmanager$2.run<unkNown source>
  .....
  .....

Is this because Tomcat is not installed correctly? Or do I need some permissions to use Tomcat? Or are some important Tomcat files missing? Or something else?

Solution

Check whether the following files exist:

c:\program files\apache software foundation\tomcat 6.0\logs\catalina.2010.02.16.log

Your exception says < access denied >, so maybe the file is open in another application or you lack permissions?

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>