You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Panos Konstantinidis <gi...@yahoo.com> on 2001/12/11 12:54:11 UTC
file.delete() always returns false under Tomcat 3.2.3
Hello there,
I am using Tomacat 3.2.3. under Windows 2000 and
with JDK1.4. I am reading a file name from a databse
and then I am constructing a File object from this
file name doing a File file = new
File(rs.getString("filename"));
When I am doing a file.exists() it returns true, but
when I am trying to do a file.delete() it always
returns false and cannot delete the file. I have
checked the properties of my webapps and my subfolder
under webapps and they are not set to read-only.
While checking the documentation of Tomcat I came
across the tomcat.policy file. I have tried and added
some more policies and permissions to my webapps
folder doing java.io.FilePermission {"path to my
folder"} "read, write, delete" but still no luck.
I have searched Tomcat's archives and the Web and I
saw that other people had the same problem as well. A
particular e-mail (from the Tomcat archives) said that
the same code that could not delete the file on
Windows worked fine on Solaris!! I am wondering if
this is a Tomcat bug or a Windows problem? Since I am
developing on Windows but soon to deploy on Solaris I
would like to get any ideas/information people might
have. Furthermore I would not want to face a proramme
crash on presentation day...
Any help/workarounds/references is deeply
appreciated.
Thank you for your time
Panos
__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>