This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Tomcat and the fly likes How to prevent startup of Tomcat as service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to prevent startup of Tomcat as service" Watch "How to prevent startup of Tomcat as service" New topic
Author

How to prevent startup of Tomcat as service

Shantanu Puranik
Ranch Hand

Joined: Jun 10, 2004
Posts: 67
Hello,

I got machine with Tomcat 5.0 already installed by previous user of the machine.
Everytime I startup the machine, tomcat starts as service.
I want to start up tomcat only when I need it and not on machine startup.
Are ther any settings which I need to alter for this to take effect?
Please suggest.


--- Shantanu
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

All of your Windows services can be controlled from the "services" windows.
Control Panel -> Administration -> Services.
Right click on "Apache Tomcat" and you will have options to change startup from automatic to manual.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Shantanu Puranik
Ranch Hand

Joined: Jun 10, 2004
Posts: 67
Thanks Ben,

But I was surprised to see that StartUp Type for Apache Tomcat service is manual and not automatic.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Maybe someone else changed this on your server.
It installs with a default value of "automatic".
Shantanu Puranik
Ranch Hand

Joined: Jun 10, 2004
Posts: 67
Hello Ben,

Problem is solved. Thanks to my friend.
Removed shortcut for Start Tomcat from
<Drive>\Documents and Settings\All Users\Start Menu\Programs\Startup

now I felt, it was sheer common sense which I forgot, I do have.



[ April 10, 2007: Message edited by: shantanu puranik ]
 
Consider Paul's rocket mass heater.
 
subject: How to prevent startup of Tomcat as service