Reputation: 115
I'm using Tomcat 5.5 on Windows Vista. When I exit my tomcat, I can't run it again.
Access is denied. Unable to open the service 'Tomcat5'
Why is that so? What can I do to make it work again? Must I reinstall everytime I exit tomcat?
Upvotes: 0
Views: 1693
Reputation: 175
A permanent fix is to right-click the short-cut, click on 'Properties', click the 'Shortcut' tab, click the 'Advanced...' button, then check the box "Run as administrator".
Upvotes: 2
Reputation: 1741
My guess is that you mean that you are exiting tomcat monitor and not actually tomcat service ... tomcat servicer is managed by windows SCM and monitor just lets you start and stop service
even though you exit tomcat monitor you can always start and stop service from either services.msc MMC snap-in or you can always start and stop service from command line
to start and stop service from command line do the following:
from elevated command prompt: net start tomcat5 (to start the service) net stop tomcat5 (to stop the service) sc query tomcat5 (to query the status of tomcat)
now to solve your problem ... run the tomcat manager as administrator (right click)
Upvotes: 5