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

2 different tomcat running on different ports

Dear experts
                      I have a situation where i have 2 web apps (custom webapp -1, custom webapp -2)
 i use my regular tomcat instance 4.1.27 for deployment of my custom webapp -1 (8080)
I need to install another tomcat version 5.x for deployment of my custom webapp -2( some other port - lets say 8081)

how do i do that, because the tomcat start up script calls what is registered in catalina_home of my environment.

1 Solution
As long as you don't define CATALINA_HOME as a global system variable, each instance of the command interpreter can have different versions of CATALINA_HOME
Look at: <Tomcat_HOME>\conf\server.xml for entry Connector.
You an change there the port to something else. (there might e other ports you want to change e.g Server port="8005")
You can look at: http://forum.java.sun.com/thread.jspa?threadID=515368&messageID=2462917
or http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt (Multiple Tomcat) for more information

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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