This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Multiple tomcat 5.5 services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Multiple tomcat 5.5 services" Watch "Multiple tomcat 5.5 services" New topic

Multiple tomcat 5.5 services

Charlie Irrgang

Joined: Jun 10, 2004
Posts: 3
I would like to run two tomcat instances at the same time, each one controlled as a separate windows services. Has anyone tried this, and could you help with instructions on how to set up this type of configuration.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12759
I have done this with Tomcat 4 and it is simple - you need to be sure that:
1. ALL ports used by Tomcat are defined separately for each instance. Not just the port for requests but also the port used in startup and shutdown.
2. Environment variables for the two instances don't get mixed up - for example be sure each one has its own CATALINA_HOME (or whatever Tomcat 5.5 uses)
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

In the TOMCAT_HOME/bin directory, there is a file called service.bat.
There are instructions (they're terse but they're there) in the header of the file for running.

As William said, make sure you have the separate instances up and running on separate ports (don't forget the shutdown port) before running the service script.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Multiple tomcat 5.5 services
Similar Threads
tomcat for linux
Cross Context in Tomcat
webservice as awindows service
Need ur Help
Login/https over spring - REST ?