On 08/06/2020 22:54, BOSECKER Nancy wrote:
> I've been tasked with upgrading Tomcat from 8.5.41, but have run into a 
> problem that begins with release 8.5.45. Hopefully someone here can help.

What was the last version where this worked? 8.5.43? I ask as 8.5.44 was
not formally released.

> I have a servlet that tries to update a file that was previously written by a 
> separate servlet. Prior to 8.5.45, this works as expected and the file is 
> updated.
> 
> In 8.5.45, I get the Java error: File not Found exception - Access is denied. 
> The file exists and is readable, but must be being held onto by some unknown 
> process. I've tried Windows process manager and resource manager, but neither 
> of these can tell me what is holding the file handle. I can open the file in 
> an editor with no error. I can also delete the file without any error.
> 
> Note that the error occurs on Windows Server 2019. When I run the same code 
> on Windows 10 there is no error.

This might be related to the user Tomcat is running under. As of 8.5.44
the default user is LocalService rather than LocalSystem. LocalService
has fewer privileges.

Mark

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

Reply via email to