Installing 2 tomcat servers as service on windows

It seems that installing 2 tomcats as a service on 1 win box is not as easy as next,next next. Here is the procedure.

I installed the second tomcat using this command:

tomcat5.exe //IS//ApacheTomcat2 
--DisplayName="Apache Tomcat 5 2" 
--Install="C:/Program Files/Apache Software Foundation/Tomcat 5.5 2/bin/tomcat5.exe" 

Because in this line we named the new tomcat service as ApacheTomcat2. We have to rename the tomcat5w.exe process to ApacheTomcat2w.exe, because we called it like this, when we start the service it looks for the ServiceNamew.exe. After renaming you run the new ApacheTomcat2w.exe and insert all the settings from your firstly installed tomcat.

4 Replies to “Installing 2 tomcat servers as service on windows”

  1. Thanks for the info, but i would like to know after running the ApacheTomcat2w.exe the Path to execute will not allow to change. May i know how to work on this?


  2. Hi,

    I am still not able to install two tamcat services on same machine after following your command.

    Could you please give steps more detail

    Appriciate your help!!


  3. Expanding on the author’s “insert all the settings from your firstly installed tomcat” statement:

    What this means is that you have to open the original tomcat5w.exe from the 1st installation and open ApacheTomcat2w.exe from the 2nd one.

    Copy the settings, but make sure all path related info with respect to the 2nd installation.
    Eg. the path for logging in the 1st one may be c:/1stinstallpath/tomcat5/logs, but change the 2nd one to c:/2ndinstallpath/etc/etc/logs.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.