Deleting files from tomcat server

Hi,

I have made my project into .war file and deployed the same in tomcat. my application will create Html file and will delete the same later.. but it so happens that only some of the html files are deleted.. when i tried to delete them manually it says tat, "Cannot delete : <file name> it is being used by another person or program", but no other program or person is really using that file. Is this due to some behavior of tomat server or is the lock on the file is due to JVM..

Pls suggest a way to delete such files....

Thanks in advance...

--

Dhana

[599 byte] By [knowledgesharea] at [2007-10-1 15:44:52]
# 1
Please check whether the modules which creates or delets these files have proper File handling capailities. Easy way is to close and nullify the File IO Objects in the finally block
pazhanikanthana at 2007-7-10 23:34:48 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
I'm guessing you're using windows.Try adding antiResourceLocking="true" in your <context> element. This is really an OS issue. It's alluded to in Tomca'ts release logs. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/changelog.html
zarar15a at 2007-7-10 23:34:48 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3
Hi, Shutdown your Tomcat server and try to delete those...files.It will work it out.-bye-Thiru
thirupathi_reddya at 2007-7-10 23:34:48 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...