Multiple Tomcat instances

Had to start two instances of Tomcat on the same VM (Linux) – Did the following without even knowing whether the steps were correct or not – will check later – but it worked.

Unzipped the tomcat zip file into two folders

In the second folder made the following changes to server.xml in conf/ folder

<Server port="8005" shutdown="SHUTDOWN">
to
<Server port="8006" shutdown="SHUTDOWN">
<Service name="Catalina">
to
<Service name="Catalina2">
<Connector port="8080" protocol="HTTP/1.1"  connectionTimeout="20000" redirectPort="8443" />
to 
<Connector port="8081" protocol="HTTP/1.1"  connectionTimeout="20000" redirectPort="8444" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
to
<Connector port="8010" protocol="AJP/1.3" redirectPort="8444" />
<Engine name="Catalina" defaultHost="localhost">
to
<Engine name="Catalina2" defaultHost="localhost">

About sandeep

Passionate about sharing information on "how to".
This entry was posted in Uncategorized. Bookmark the permalink.