jQuery in Action, 3rd edition
The moose likes Tomcat and the fly likes Adding Tomcat as service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Adding Tomcat as service" Watch "Adding Tomcat as service" New topic

Adding Tomcat as service

Mike Tyson

Joined: May 26, 2004
Posts: 2
I have apache tomcat server running but it does not appear in services does anyone know how to add it there?
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

When you installed it with the windows installer, you should have had the option to install as a service.

If you didn't use the installer or didn't select that option, then I understand there is a batch file somewhere in the tomcat directories that allows you to install it after the fact.

Andy Zhu
Ranch Hand

Joined: May 26, 2004
Posts: 145
I did this: installed tomcat 5.0.25 without service option. Later on, i ran $(CATALINA_HOME)/bin/service.exe, it installed tomcat5 as service but it doesn't appear in windows administration services. Anyway, I just want it to run manually. So do this at command line:

net start tomcat5 will start service
net stop tomcat5 will stop service

Good luck

--------<br />Andy Zhu<br />scjp 1.4<br />scjd 1.4<br />SAS Certified Programmer 9.0
I agree. Here's the link: http://aspose.com/file-tools
subject: Adding Tomcat as service
jQuery in Action, 3rd edition