tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Einfeldt" <ralph.einfe...@uptime-isc.de>
Subject AW: File file = new File(path);
Date Wed, 21 Nov 2001 16:09:58 GMT
And all directories in the path have the proper permissions.

Make a try like
#login as the tomcat user
cd /usr
cd share
cd ...
cd classes
ls -l properties.txt

> -----Urspr√ľngliche Nachricht-----
> Von: David Rault [mailto:tomcat.drault@free.fr]
> Gesendet: Mittwoch, 21. November 2001 17:03
> An: Tomcat Users List; tfulton@speakeasy.net
> Betreff: 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" <tfulton@speakeasy.net>
> To: <tomcat-user@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:   
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message