You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by vn...@cox.net on 2006/05/10 12:08:15 UTC
File deletion problem
Setup:
Tomcat - 5.0.28
Java - 1.4.2
OS - Windows XP
Problem:
Within my webapp there is a need to delete a file. When I try to delete the file sometimes it gives the message "the file can not be deleted beacuse it is being used by another user or process". The only way to get out of this situation is - stop tomcat, delete file, and start tomcat. We do not see this message always - it seems pretty random. We tried to isolate it, but unsuccessful. Any thoughts/comments?
Thank You.
vasu
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: File deletion problem
Posted by Hadraba Petr <ha...@bluetone.cz>.
Hi vasu!
What files do you want to delete? The files your application is using?
If yes, maybe you forgot call f.close()... Maybe... My idea...
PETR
On 5/10/06, vnug@cox.net <vn...@cox.net> wrote:
>
> Setup:
> Tomcat - 5.0.28
> Java - 1.4.2
> OS - Windows XP
>
> Problem:
>
> Within my webapp there is a need to delete a file. When I try to delete the file sometimes it gives the message "the file can not be deleted beacuse it is being used by another user or process". The only way to get out of this situation is - stop tomcat, delete file, and start tomcat. We do not see this message always - it seems pretty random. We tried to isolate it, but unsuccessful. Any thoughts/comments?
>
> Thank You.
> vasu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
Petr Hadraba
graphic artist and software designer
http://people.hadraba-soft.com/~petr
hadrabap AT bluetone DOT cz
Re: File deletion problem
Posted by Médérick Thebault <m....@brittany-ferries.fr>.
Be sure in our webapp, that no reference of this file exists/is still
valid. I use to set to null every object which used this file (logger
for eg) and that my webapp want to delete.
HTH
vnug@cox.net a écrit :
> Setup:
> Tomcat - 5.0.28
> Java - 1.4.2
> OS - Windows XP
>
> Problem:
>
> Within my webapp there is a need to delete a file. When I try to delete the file sometimes it gives the message "the file can not be deleted beacuse it is being used by another user or process". The only way to get out of this situation is - stop tomcat, delete file, and start tomcat. We do not see this message always - it seems pretty random. We tried to isolate it, but unsuccessful. Any thoughts/comments?
>
> Thank You.
> vasu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org