This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Shared folder not accessible when running tomcat as a service  RSS feed

 
Swati Shinde
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running tomcat as a service. I have deployed webservice for my application. The web service implementation

needs to access shared folder on remote PC. Using NetUse command,I have already mapped the network drive for the shared

folder. I am able to open that shared folder using the network drive on windows explorer.

when running tomcat as a service my webservice is not able to access the shared folder. However if I don't run

tomcat as a service and run it from batch file it is able to access the same shared folder.

Is there specific settings to be done for tomcat when it is executed as a service?
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Swati!

Most likely the userID that the Tomcat service is running under doesn't have file access permissions. Most Windows services run under a system service userID, although this can be changed via the service control panel.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!