• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem accessing network drives / changing log on user

 
Jon Pincott
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're running Tomcat as a Windows service, you can set this from the services window. Right click on Apache Tomcat, go to properties, and set the user.

I've also found that I have to use UNC names.
 
Jon Pincott
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, that worked. Is there a reason why the Tomcat configuration tool doesn't work?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic