Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Tomcat service cannot access network drive

807580Dec 14 2009 — edited Dec 14 2009
When tomcat as a service runs, it cannot access network shared directory that is mapped to a drive letter Z.

I have tried the following:
- I have set the service to run as a Local system user
- I have set the service to run as a normal user
- I set the application to use UNC path to the network shared directory. Also since that when mapping a drive letter the shared directory requires a user name and password to read its contents, I donot know how the service can give these credentials automatically.
- I have set a login script for the user to run at start up that maps the directory Z drive. The script basically contains this command:
net use Z: \\10.29.168.22\qdir\files /user:qfileuser qfileuserpassword

When the application is run from eclipse or command line (not as a service ofcourse) it can access the drive.

The same problem is posted on this thread but with no working solution (or at least for me)
http://forums.sun.com/thread.jspa?messageID=10884572


Anyone has had the same problem and solved it, any suggestions on this would be useful as well.

Thanks.
Shahzad
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 11 2010
Added on Dec 14 2009
10 comments
1,652 views