• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Shared folder not accessible when running tomcat as a service

 
narayana Ega
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shared folder not accessible when running tomcat as a service



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 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?
 
Rob Spoor
Sheriff
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It needs to run as someone who has access to the share. By default all services run as some local system account which doesn't have access. You need to change the user the service runs as from the Services screen.
 
narayana Ega
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have access to the shared folder. I am able to access it generally...where i am not from tomcat...

if it is necessary to provide credentials, where i have to provide the credentials?

please reply......

Thanks.............
 
Rob Spoor
Sheriff
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Spoor wrote:You need to change the user the service runs as from the Services screen.

Open Control Panel -> Administrative Tools -> Services. Double click on the Tomcat service. Go to the Log On tab. Select "This account", then fill in your credentials.
 
narayana Ega
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You Very much now the problem is solved.......
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic