I am running Tomcat 5.0.28 on Windows 2000, and I'm having a problem with accessing files on a network drive.
I've written a servlet to help me investigate and it proves that I can access local files/directories with no problems, but mapped drives and network resources aren't visible to the servlet. As I understand it, this is due to the security constraints for the "LocalSystem" account, which Tomcat is running as by default.
My problem comes when I try to change the log on account. I am using the "Configure Tomcat" application to change the logon account but it doesn't seem to make any difference, and I can't tell if the change is persisting as when I reopen the configuration window the account reverts to "Local System account".
Can anyone tell me how to configure Tomcat to allow access to network resources?
P.S. Can a servlet determine what user it is running as? That would be useful debug info.