Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do you fix trust level problem to allow Tomcat to start as a service?

 
Michael Dress
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "bin" command "service.bat start" builds the command:

tomcat7.exe //IS//Tomcat7 --StartClass org.apache.startup.Bootstrap --StopClass org.apache.startup.Bootstrap --StartParams start --StopParams stop

which produces the following errors (on Windows 7 64 bit) (that I am looking for answers on how to address them)

[error] Unable to open the Service Manager
[error] Access is denied
[error] Commons Daemon procurn failed with exit value: 7 (Failed to)
[error] Access is denied

Please help.
Thanks,
Mike
 
Pete Grant
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a similar problem. I installed Tomcat 7 on my Windows 7 (Home Premium) laptop. When I boot up the machine an error dialog pops up with complaints

Access is denied.
Unable to open the service 'Tomcat7'.


Yet, in spite of this annoying dialog that I have to dismiss, Tomcat works just fine. I have checked all the log files and found no error listed.

Any ideas?

Thanks, Pete
 
Tejas Aryan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try executing the batch file with "Run as administrator" option by right clicking on the batch file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic