interesting, are you saying that the handle is not closed when you call
stream.close()?
Peter Crowther wrote:
From: Black Buddha [mailto:[EMAIL PROTECTED]
even after I've stopped the webapp Tomcat still
holds an open file handle to the generated library files
Welcome to a JVM bug. The essence is that:
- File stream objects in the JVM hold onto the file handle.
- The handle is closed only when the object is GCed.
- On Windows, but not on Unix, an open file handle prevents file
deletion.
Your options are:
- Run on UNIX, possibly in a virtual machine;
- Ensure a garbage collection before the files need to be deleted - can
be difficult, as System.GC() is only a hint (as I found out when I ran
into this under somewhat different circumstances);
- Don't use a JVM with this defect (but I don't know if you have any
alternatives).
- Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]