C:\opt\apache-tomcat-6.0.36-ins2
是我的 tomcat 实例所在的位置。
当我今天启动 tomcat 实例时,我立即收到以下错误(在第一行)。直到今天,我一直能够在没有此类错误的情况下启动 tomcat。请问有没有办法解决这个问题?
java.io.FileNotFoundException: C:\opt\apache-tomcat-6.0.36-ins2\logs\localhost.2013-02-11.log (访问被拒绝) 在 java.io.FileOutputStream.openAppend(Native Method) 在java.io.FileOutputStream.(FileOutputStream.java:192) at org.apache.juli.FileHandler.openWriter(FileHandler.java:374) at org.apache.juli.FileHandler.(FileHandler.java:99) at org.apache .juli.FileHandler.(FileHandler.java:90) 在 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 在 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) 在 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl。 java:27) 在 java.lang.class 的 java.lang.reflect.Constructor.newInstance(Constructor.java:513)。newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:515) at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:460) 在 org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:286) 在 java.util.logging.LogManager$2.run(LogManager.java:267) 在 java.security.AccessController.doPrivileged (本机方法)在 java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:265) 在 java.util.logging.LogManager.getLogManager(LogManager.java:248) 在 java.util.logging.Logger.(Logger. java:225)在 java.util.logging.LogManager$RootLogger.(LogManager.java:1094) 在 java.util。logging.LogManager$RootLogger.(LogManager.java:1091) 在 java.util.logging.LogManager$1.run(LogManager.java:180) 在 java.security.AccessController.doPrivileged(Native Method) 在 java.util.logging。 LogManager.(LogManager.java:157) at java.util.logging.Logger.getLogger(Logger.java:287) at org.apache.juli.logging.DirectJDKLog.(DirectJDKLog.java:71) at org.apache.juli .logging.DirectJDKLog.getInstance(DirectJDKLog.java:178) 在 org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:171) 在 org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:243) ) 在 org.apache.juli.logging.LogFactory.getLog(LogFactory.java:298) 在 org.apache.catalina.startup.Bootstrap.(Bootstrap.java:55)logging.LogManager$1.run(LogManager.java:180) at java.security.AccessController.doPrivileged(Native Method) at java.util.logging.LogManager.(LogManager.java:157) at java.util.logging.Logger。 getLogger(Logger.java:287) 在 org.apache.juli.logging.DirectJDKLog.(DirectJDKLog.java:71) 在 org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:178) 在 org.apache。 juli.logging.LogFactory.getInstance(LogFactory.java:171) 在 org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:243) 在 org.apache.juli.logging.LogFactory.getLog(LogFactory.java: 298)在 org.apache.catalina.startup.Bootstrap.(Bootstrap.java:55)logging.LogManager$1.run(LogManager.java:180) at java.security.AccessController.doPrivileged(Native Method) at java.util.logging.LogManager.(LogManager.java:157) at java.util.logging.Logger。 getLogger(Logger.java:287) 在 org.apache.juli.logging.DirectJDKLog.(DirectJDKLog.java:71) 在 org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:178) 在 org.apache。 juli.logging.LogFactory.getInstance(LogFactory.java:171) 在 org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:243) 在 org.apache.juli.logging.LogFactory.getLog(LogFactory.java: 298)在 org.apache.catalina.startup.Bootstrap.(Bootstrap.java:55)LogManager.(LogManager.java:157) at java.util.logging.Logger.getLogger(Logger.java:287) at org.apache.juli.logging.DirectJDKLog.(DirectJDKLog.java:71) at org.apache.juli .logging.DirectJDKLog.getInstance(DirectJDKLog.java:178) 在 org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:171) 在 org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:243) ) 在 org.apache.juli.logging.LogFactory.getLog(LogFactory.java:298) 在 org.apache.catalina.startup.Bootstrap.(Bootstrap.java:55)LogManager.(LogManager.java:157) at java.util.logging.Logger.getLogger(Logger.java:287) at org.apache.juli.logging.DirectJDKLog.(DirectJDKLog.java:71) at org.apache.juli .logging.DirectJDKLog.getInstance(DirectJDKLog.java:178) 在 org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:171) 在 org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:243) ) 在 org.apache.juli.logging.LogFactory.getLog(LogFactory.java:298) 在 org.apache.catalina.startup.Bootstrap.(Bootstrap.java:55)LogFactory.getInstance(LogFactory.java:171) at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:243) at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:298) at org .apache.catalina.startup.Bootstrap.(Bootstrap.java:55)LogFactory.getInstance(LogFactory.java:171) at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:243) at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:298) at org .apache.catalina.startup.Bootstrap.(Bootstrap.java:55)