• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
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
 
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
 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!