Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes How do you fix trust level problem to allow Tomcat to start as a service? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How do you fix trust level problem to allow Tomcat to start as a service?" Watch "How do you fix trust level problem to allow Tomcat to start as a service?" New topic
Author

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

Michael Dress
Greenhorn

Joined: Aug 01, 2011
Posts: 1
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

Joined: Apr 25, 2011
Posts: 8
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

Joined: Apr 12, 2009
Posts: 22
Try executing the batch file with "Run as administrator" option by right clicking on the batch file.
 
Consider Paul's rocket mass heater.
 
subject: How do you fix trust level problem to allow Tomcat to start as a service?