• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 472
  • Last Modified:

2 Instance on Tomcat

We have Tomcat 6 installed on our server as a service.
Now we need to setup another tomcat instance on the same machine without having to create another service. So we downloaded a zipped version of Tomcat which can be exploded (without having to install).

After exploding this Tomcat we executed the startup.bat from command prompt but it gave an error saying CATALINE_HOME is not set. so on the prompt we did "set CATALINA_HOME=...". Now the error has disappeared but the server still does not start.

can someone please help.

We don't want to create another service as we don't want to make any changes in the registry. Also, we do not want to set any values in the system variables as that could effect the already running instance.

Thank you
  • 2
2 Solutions
Look at the log file and post the errors here
When we run Tomcat, it uses 5 environment variables. They are:

In the above list, CATALINA_HOME and JAVA_HOME are mandatory environment variables. All others are optional and can be calculated using CATALINA_HOME.

CATALINA_HOME - this environment variable should point to tomcat base folder, where tomcat binary are  installed/extracted. so based on CATALINA_HOME we can get bin and lib folder
You would definitely need to adjust the default port as otherwise each instance would try to listen on the same one. The one that gets there second to the same port will throw an error

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now