tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: java.io.FileNotFoundException on tomcat 6 startup
Date Tue, 21 Aug 2007 15:39:00 GMT
I'm seeing stuff like C:\apache-tomcat-6.0.13"\conf\server.xml (notice 
the stray double quote character) in your paths.  Could it be you have 
one extra quote in your environtment variables or startup script?

--David

Chris Wiley wrote:

>Hello,
>
> 
>
>    I am hoping someone can help me with this.  I have been trying to get a
>standalone instance of tomcat 6 (6.0.13) to startup on a windows XP laptop.
>I am using java 6 (build 1.6.0_01-b06). I am not sure if this is just a java
>version incompatibility problem or something else.  It simply says it can't
>open the server.xml file.  I have the environment variables set ( JAVA_HOME
>and CATALINA_HOME ) and they seem to resolve properly at the command line.
>Any Suggestions as to why it can't open the server.xml file?  Is it
>absolutely imperative that I change something in this file for it to work?
>
> 
>
>It also says it can't find the log files and gives four
>FileNotFoundExceptions.  I have tried creating these but I still get the
>same errors.  It looks like there is a quotation problem on the
>java.io.FileNotFoundException line but I'm not sure.  Any suggestions?
>
> 
>
>Thanks!
>
>Chris
>
> 
>
> 
>
> 
>
>java.util.logging.ErrorManager: 4
>
>java.io.FileNotFoundException: C:\apache-tomcat-6.0.13"
>-Dcatalina.home=C:\apache-tomcat-6.0.13"\logs\catalina.2007-08-21.log (The
>filename, directory name, or volume label syntax is incorrect)
>
>            at java.io.FileOutputStream.openAppend(Native Method)
>
>            at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
>
>            at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
>
>            at java.io.FileWriter.<init>(FileWriter.java:61)
>
>            at org.apache.juli.FileHandler.open(FileHandler.java:259)
>
>            at org.apache.juli.FileHandler.<init>(FileHandler.java:59)
>
>            at org.apache.juli.FileHandler.<init>(FileHandler.java:50)
>
>            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>Method)
>
>            at
>sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
>sorImpl.java:39)
>
>            at
>sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
>torAccessorImpl.java:27)
>
>            at
>java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>
>            at java.lang.Class.newInstance0(Class.java:355)
>
>            at java.lang.Class.newInstance(Class.java:308)
>
>            at
>org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
>r.java:398)
>
>            at
>org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
>r.java:342)
>
>            at
>org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
>r.java:238)
>
>            at java.util.logging.LogManager$2.run(LogManager.java:254)
>
>            at java.security.AccessController.doPrivileged(Native Method)
>
>            at
>java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:252
>)
>
>            at
>java.util.logging.LogManager.getLogManager(LogManager.java:235)
>
>            at java.util.logging.Logger.<init>(Logger.java:221)
>
>            at
>java.util.logging.LogManager$RootLogger.<init>(LogManager.java:969)
>
>            at
>java.util.logging.LogManager$RootLogger.<init>(LogManager.java:966)
>
>            at java.util.logging.LogManager$1.run(LogManager.java:179)
>
>            at java.security.AccessController.doPrivileged(Native Method)
>
>            at java.util.logging.LogManager.<clinit>(LogManager.java:156)
>
>            at java.util.logging.Logger.getLogger(Logger.java:274)
>
>            at
>org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
>
>            at
>org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:178)
>
>            at
>org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
>
>            at
>org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:241)
>
>            at
>org.apache.juli.logging.LogFactory.getLog(LogFactory.java:296)
>
>            at
>org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54)
>
>java.util.logging.ErrorManager: 4
>
>java.io.FileNotFoundException: C:\apache-tomcat-6.0.13"
>-Dcatalina.home=C:\apache-tomcat-6.0.13"\logs\localhost.2007-08-21.log (The
>filename, directory name, or volume label syntax is incorrect)
>
>            at java.io.FileOutputStream.openAppend(Native Method)
>
>            at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
>
>            at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
>
>            at java.io.FileWriter.<init>(FileWriter.java:61)
>
>            at org.apache.juli.FileHandler.open(FileHandler.java:259)
>
>            at org.apache.juli.FileHandler.<init>(FileHandler.java:59)
>
>            at org.apache.juli.FileHandler.<init>(FileHandler.java:50)
>
>            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>Method)
>
>            at
>sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
>sorImpl.java:39)
>
>            at
>sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
>torAccessorImpl.java:27)
>
>            at
>java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>
>            at java.lang.Class.newInstance0(Class.java:355)
>
>            at java.lang.Class.newInstance(Class.java:308)
>
>            at
>org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
>r.java:398)
>
>            at
>org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
>r.java:342)
>
>            at
>org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
>r.java:238)
>
>            at java.util.logging.LogManager$2.run(LogManager.java:254)
>
>            at java.security.AccessController.doPrivileged(Native Method)
>
>            at
>java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:252
>)
>
>            at
>java.util.logging.LogManager.getLogManager(LogManager.java:235)
>
>            at java.util.logging.Logger.<init>(Logger.java:221)
>
>            at
>java.util.logging.LogManager$RootLogger.<init>(LogManager.java:969)
>
>            at
>java.util.logging.LogManager$RootLogger.<init>(LogManager.java:966)
>
>            at java.util.logging.LogManager$1.run(LogManager.java:179)
>
>            at java.security.AccessController.doPrivileged(Native Method)
>
>            at java.util.logging.LogManager.<clinit>(LogManager.java:156)
>
>            at java.util.logging.Logger.getLogger(Logger.java:274)
>
>            at
>org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
>
>            at
>org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:178)
>
>            at
>org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
>
>            at
>org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:241)
>
>            at
>org.apache.juli.logging.LogFactory.getLog(LogFactory.java:296)
>
>            at
>org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54)
>
>java.util.logging.ErrorManager: 4
>
>java.io.FileNotFoundException: C:\apache-tomcat-6.0.13"
>-Dcatalina.home=C:\apache-tomcat-6.0.13"\logs\manager.2007-08-21.log (The
>filename, directory name, or volume label syntax is incorrect)
>
>            at java.io.FileOutputStream.openAppend(Native Method)
>
>            at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
>
>            at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
>
>            at java.io.FileWriter.<init>(FileWriter.java:61)
>
>            at org.apache.juli.FileHandler.open(FileHandler.java:259)
>
>            at org.apache.juli.FileHandler.<init>(FileHandler.java:59)
>
>            at org.apache.juli.FileHandler.<init>(FileHandler.java:50)
>
>            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>Method)
>
>            at
>sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
>sorImpl.java:39)
>
>            at
>sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
>torAccessorImpl.java:27)
>
>            at
>java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>
>            at java.lang.Class.newInstance0(Class.java:355)
>
>            at java.lang.Class.newInstance(Class.java:308)
>
>            at
>org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
>r.java:398)
>
>            at
>org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
>r.java:342)
>
>            at
>org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
>r.java:238)
>
>            at java.util.logging.LogManager$2.run(LogManager.java:254)
>
>            at java.security.AccessController.doPrivileged(Native Method)
>
>            at
>java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:252
>)
>
>            at
>java.util.logging.LogManager.getLogManager(LogManager.java:235)
>
>            at java.util.logging.Logger.<init>(Logger.java:221)
>
>            at
>java.util.logging.LogManager$RootLogger.<init>(LogManager.java:969)
>
>            at
>java.util.logging.LogManager$RootLogger.<init>(LogManager.java:966)
>
>            at java.util.logging.LogManager$1.run(LogManager.java:179)
>
>            at java.security.AccessController.doPrivileged(Native Method)
>
>            at java.util.logging.LogManager.<clinit>(LogManager.java:156)
>
>            at java.util.logging.Logger.getLogger(Logger.java:274)
>
>            at
>org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
>
>            at
>org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:178)
>
>            at
>org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
>
>            at
>org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:241)
>
>            at
>org.apache.juli.logging.LogFactory.getLog(LogFactory.java:296)
>
>            at
>org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54)
>
>java.util.logging.ErrorManager: 4
>
>java.io.FileNotFoundException: C:\apache-tomcat-6.0.13"
>-Dcatalina.home=C:\apache-tomcat-6.0.13"\logs\admin.2007-08-21.log (The
>filename, directory name, or volume label syntax is incorrect)
>
>            at java.io.FileOutputStream.openAppend(Native Method)
>
>            at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
>
>            at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
>
>            at java.io.FileWriter.<init>(FileWriter.java:61)
>
>            at org.apache.juli.FileHandler.open(FileHandler.java:259)
>
>            at org.apache.juli.FileHandler.<init>(FileHandler.java:59)
>
>            at org.apache.juli.FileHandler.<init>(FileHandler.java:50)
>
>            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>Method)
>
>            at
>sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
>sorImpl.java:39)
>
>            at
>sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
>torAccessorImpl.java:27)
>
>            at
>java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>
>            at java.lang.Class.newInstance0(Class.java:355)
>
>            at java.lang.Class.newInstance(Class.java:308)
>
>            at
>org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
>r.java:398)
>
>            at
>org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
>r.java:342)
>
>            at
>org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
>r.java:238)
>
>            at java.util.logging.LogManager$2.run(LogManager.java:254)
>
>            at java.security.AccessController.doPrivileged(Native Method)
>
>            at
>java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:252
>)
>
>            at
>java.util.logging.LogManager.getLogManager(LogManager.java:235)
>
>            at java.util.logging.Logger.<init>(Logger.java:221)
>
>            at
>java.util.logging.LogManager$RootLogger.<init>(LogManager.java:969)
>
>            at
>java.util.logging.LogManager$RootLogger.<init>(LogManager.java:966)
>
>            at java.util.logging.LogManager$1.run(LogManager.java:179)
>
>            at java.security.AccessController.doPrivileged(Native Method)
>
>            at java.util.logging.LogManager.<clinit>(LogManager.java:156)
>
>            at java.util.logging.Logger.getLogger(Logger.java:274)
>
>            at
>org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
>
>            at
>org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:178)
>
>            at
>org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
>
>            at
>org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:241)
>
>            at
>org.apache.juli.logging.LogFactory.getLog(LogFactory.java:296)
>
>            at
>org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54)
>
>java.util.logging.ErrorManager: 4
>
>java.io.FileNotFoundException: C:\apache-tomcat-6.0.13"
>-Dcatalina.home=C:\apache-tomcat-6.0.13"\logs\host-manager.2007-08-21.log
>(The filename, directory name, or volume label syntax is incorrect)
>
>            at java.io.FileOutputStream.openAppend(Native Method)
>
>            at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
>
>            at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
>
>            at java.io.FileWriter.<init>(FileWriter.java:61)
>
>            at org.apache.juli.FileHandler.open(FileHandler.java:259)
>
>            at org.apache.juli.FileHandler.<init>(FileHandler.java:59)
>
>            at org.apache.juli.FileHandler.<init>(FileHandler.java:50)
>
>            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>Method)
>
>            at
>sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
>sorImpl.java:39)
>
>            at
>sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
>torAccessorImpl.java:27)
>
>            at
>java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>
>            at java.lang.Class.newInstance0(Class.java:355)
>
>            at java.lang.Class.newInstance(Class.java:308)
>
>            at
>org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
>r.java:398)
>
>            at
>org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
>r.java:342)
>
>            at
>org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
>r.java:238)
>
>            at java.util.logging.LogManager$2.run(LogManager.java:254)
>
>            at java.security.AccessController.doPrivileged(Native Method)
>
>            at
>java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:252
>)
>
>            at
>java.util.logging.LogManager.getLogManager(LogManager.java:235)
>
>            at java.util.logging.Logger.<init>(Logger.java:221)
>
>            at
>java.util.logging.LogManager$RootLogger.<init>(LogManager.java:969)
>
>            at
>java.util.logging.LogManager$RootLogger.<init>(LogManager.java:966)
>
>            at java.util.logging.LogManager$1.run(LogManager.java:179)
>
>            at java.security.AccessController.doPrivileged(Native Method)
>
>            at java.util.logging.LogManager.<clinit>(LogManager.java:156)
>
>            at java.util.logging.Logger.getLogger(Logger.java:274)
>
>            at
>org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
>
>            at
>org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:178)
>
>            at
>org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
>
>            at
>org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:241)
>
>            at
>org.apache.juli.logging.LogFactory.getLog(LogFactory.java:296)
>
>            at
>org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54)
>
>Aug 21, 2007 9:18:54 AM org.apache.catalina.startup.Catalina load
>
>WARNING: Can't load server.xml from C:\apache-tomcat-6.0.13"
>-Dcatalina.home=C:\apache-tomcat-6.0.13"\conf\server.xml
>
>Aug 21, 2007 9:18:54 AM org.apache.catalina.startup.Catalina load
>
>WARNING: Can't load server.xml from C:\apache-tomcat-6.0.13"
>-Dcatalina.home=C:\apache-tomcat-6.0.13"\conf\server.xml
>
>Aug 21, 2007 9:18:54 AM org.apache.catalina.startup.Catalina start
>
>INFO: Server startup in 0 ms
>
>java.lang.reflect.InvocationTargetException
>
>            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>            at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
>)
>
>            at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
>.java:25)
>
>            at java.lang.reflect.Method.invoke(Method.java:597)
>
>            at
>org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>
>            at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
>Caused by: java.lang.NullPointerException
>
>            at org.apache.catalina.startup.Catalina.await(Catalina.java:630)
>
>            at org.apache.catalina.startup.Catalina.start(Catalina.java:590)
>
>            ... 6 more
>
>
>  
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message