Knowledgebase article 48

How to create a second instance of Tomcat on a Windows server


The following article was submitted by a Bryan, GroupLink customer running the HelpDesk. It explains how he added a second instance of tomcat so he could manage both instances separately on his Windows server. The following steps explain how he installed HelpDesk into a second instance of Tomcat so that it could co-exist with other Tomcat applications hosted by the same server. Thanks Bryan!

1)  Copy the target directory of the first instance to a new target,
e.g. C:\Tomcat55 >> C:\Tomcat.eHD

 

2) In the target directory, rename the c:\tomcat.eHD\bin\tomcat5w.exe to a different name
e.g. TomcateHDW.exe

 

3) Edit c:\tomcat.eHD\conf\server.xml and change all port references to this file by adding 1
e.g.: 8005 >> 8006 8080 >> 8081 8443 >> 8444 8009 >> 8010 8081 >> 8082

 4) From the c:\tomcat.eHD\bin directory, run the following command:
tomcat5 //IS//TomcateHD --DisplayName="eHelpDesk" --Install="c:\tomcat.eHD\bin\tomcat5.exe" --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.s­ tartup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.st­ artup.Bootstrap --StopParams=stop the above command will

Create a service call TomcateHD with a display name of eHelpDesk and launch the application (as a service) from c:\tomcat.eHD\bin\tomcat5.exe

 5) Run TomcateHDW.exe and edit the values as appropriate You can now Start/Stop either instance of tomcat using the tomcat5w.exe (of the first Tomcat instance) and TomcateHDw.exe (of the second Tomcat instance) Additionally, you can add a "Service Control" icon in the System tray by creating a shortcut to launch the following command(s).
e.g.: C:\Tomcat.eHD\bin\tomcatehdw.exe //MS//TomcateHD
Group eHD Standard Support Last modified Nov 13, 2019 Type Public Viewed 3098