Try putting the file into TOMCAT_HOME\bin directory.
BTW, you can create a separate folder to hold the data files and the exact
location of this folder can be specified in a properties file. Your servlet
should read the properties file to get the exact location of the data file.
This will give you more flexibility if you move the application around.
Hope this helps.
-Velmurugan Periasamy.
AEGIS.Net
http://www.aegis.net
-----Original Message-----
From: Dennis Jay Dole [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 5:24 PM
To: [EMAIL PROTECTED]
Subject: Won't read existing file
Hi I have a problem...
I have a servlet which reads opens a serialized file
"File f = new File("Database.scat");"
then I do a lot of things when "f.exists()",
but since I upgraded my web server to Tomcat (from Sun's old java
web-server)
it f.exists() returns false even though I know the file is placed in
the
right
directory Tomcat's root directory, and named correctly.
Does anyone know why this Tomcat isn't allowing my servlet to open this
file? Does it have somthing to do with permissions, or security settings?...
If so, how do I go about giving permission to my servlet to see the database
file?
Please help!!
Dennis Jay Dole
[EMAIL PROTECTED]