> On Oct 8, 2022, at 9:36 AM, Martin Moore <martinmoore...@gmail.com> wrote:
> 
> Hello,
> 
> I am facing a problem using Tomcat V8 with my J2ee app that deletes (using
> file.delete() Java 8) a file from disk (Windows). The file is actually
> deleting only on application level meaning that the application does not
> see the file anymore but if i open the folder i still see the file which is
> then locked by Java process. I only get the file to be removed physically
> when i close the Tomcat instance.
> 
> Does this problem relate to permissions in catalina.policy ?
> How to solve this?

This has a familiar ring to it.  Can we see your entire java command (minus 
secrets) and any environment variables which have a capital X.  I suspect the 
JVM is holding off on deleting the file until exit and IIRC there’s a setting 
for that.  But it has been a while since I dealt with this.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to