You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Todd Fulton <tf...@speakeasy.net> on 2001/11/21 16:54:45 UTC
File file = new File(path);
Anyone,
I've been trying to create a File (and FileInputStream) from within Tomcat
3.3 now for hours now. I'm using the TOMCAT_HOME environment variable to
get the path, but keep getting nothing but
java.io.FileNotFoundException:
/usr/share/tomcat/webapps/spankroot/WEB-INF/classes/properties.txt (No such
file or directory)
java.sql.SQLException: The url cannot be null
with the code:
String path = System.getProperty("tomcat.home") +
"/webapps/spankroot/WEB-INF/classes/properties.txt ";
File file = new File(path);
FileInputStream stream = new FileInputStream(file);
But, the file is there!!!
Can anyone help?
Todd
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
Re: File file = new File(path);
Posted by Holger Klawitter <li...@klawitter.de>.
David Rault wrote:
>
> may be a stupid sugestion but... anyway
> have you checked the unix rights of the user you run tomcat as for the file
> /usr/share/tomcat/webapps/spankroot/WEB-INF/classes/properties.txt ??
>
> David
>
> ----- Original Message -----
> From: "Todd Fulton" <tf...@speakeasy.net>
> To: <to...@jakarta.apache.org>
> Sent: Wednesday, November 21, 2001 4:54 PM
> Subject: File file = new File(path);
>
> >
> > Anyone,
> >
> > I've been trying to create a File (and FileInputStream) from within Tomcat
> > 3.3 now for hours now. I'm using the TOMCAT_HOME environment variable to
> > get the path, but keep getting nothing but
> >
> > java.io.FileNotFoundException:
> > /usr/share/tomcat/webapps/spankroot/WEB-INF/classes/properties.txt (No
> such
> > file or directory)
> > java.sql.SQLException: The url cannot be null
> >
> > with the code:
> >
> > String path = System.getProperty("tomcat.home") +
> > "/webapps/spankroot/WEB-INF/classes/properties.txt ";
^^^
Is this space really right?
With kind regards / Mit freundlichem Gruß
Holger Klawitter
--
Holger Klawitter
holger@klawitter.de http://www.klawitter.de
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
RE: File file = new File(path);
Posted by Todd Fulton <tf...@speakeasy.net>.
Well, the rights are currently:
-rw-r--r-- 1 root root 345 Nov 21 06:27 properties.txt
I think that should be sufficient??
-----Original Message-----
From: David Rault [mailto:tomcat.drault@free.fr]
Sent: Wednesday, November 21, 2001 8:03 AM
To: Tomcat Users List; tfulton@speakeasy.net
Subject: Re: File file = new File(path);
may be a stupid sugestion but... anyway
have you checked the unix rights of the user you run tomcat as for the file
/usr/share/tomcat/webapps/spankroot/WEB-INF/classes/properties.txt ??
David
----- Original Message -----
From: "Todd Fulton" <tf...@speakeasy.net>
To: <to...@jakarta.apache.org>
Sent: Wednesday, November 21, 2001 4:54 PM
Subject: File file = new File(path);
>
> Anyone,
>
> I've been trying to create a File (and FileInputStream) from within Tomcat
> 3.3 now for hours now. I'm using the TOMCAT_HOME environment variable to
> get the path, but keep getting nothing but
>
> java.io.FileNotFoundException:
> /usr/share/tomcat/webapps/spankroot/WEB-INF/classes/properties.txt (No
such
> file or directory)
> java.sql.SQLException: The url cannot be null
>
> with the code:
>
> String path = System.getProperty("tomcat.home") +
> "/webapps/spankroot/WEB-INF/classes/properties.txt ";
> File file = new File(path);
> FileInputStream stream = new FileInputStream(file);
>
>
> But, the file is there!!!
>
> Can anyone help?
>
>
> Todd
>
>
> --
> To unsubscribe: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
Re: File file = new File(path);
Posted by David Rault <to...@free.fr>.
may be a stupid sugestion but... anyway
have you checked the unix rights of the user you run tomcat as for the file
/usr/share/tomcat/webapps/spankroot/WEB-INF/classes/properties.txt ??
David
----- Original Message -----
From: "Todd Fulton" <tf...@speakeasy.net>
To: <to...@jakarta.apache.org>
Sent: Wednesday, November 21, 2001 4:54 PM
Subject: File file = new File(path);
>
> Anyone,
>
> I've been trying to create a File (and FileInputStream) from within Tomcat
> 3.3 now for hours now. I'm using the TOMCAT_HOME environment variable to
> get the path, but keep getting nothing but
>
> java.io.FileNotFoundException:
> /usr/share/tomcat/webapps/spankroot/WEB-INF/classes/properties.txt (No
such
> file or directory)
> java.sql.SQLException: The url cannot be null
>
> with the code:
>
> String path = System.getProperty("tomcat.home") +
> "/webapps/spankroot/WEB-INF/classes/properties.txt ";
> File file = new File(path);
> FileInputStream stream = new FileInputStream(file);
>
>
> But, the file is there!!!
>
> Can anyone help?
>
>
> Todd
>
>
> --
> To unsubscribe: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>