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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>