File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Multiple tomcat 5.5 services" Watch "Multiple tomcat 5.5 services" New topic
Author

Multiple tomcat 5.5 services

Charlie Irrgang
Greenhorn

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
Rancher

Joined: Mar 22, 2000
Posts: 12781
    
    5
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)
Bill
Ben Souther
Sheriff

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: http://aspose.com/file-tools
 
subject: Multiple tomcat 5.5 services