Run the Tomcat Server

Hi,

Is it possible to run the 2 tomcat servers simultaneously with different ports.

Some times it's working. some times its not running,

Anybody can help me to solve this problem.

Thx

regards'

Punitha.R

Questions by Punitha.R   answers by Punitha.R

Showing Answers 1 - 21 of 21 Answers

while installing the web server install the two servers with different ports for startup and as well as for shutdown port.. if both of them are  different .. both the server will work fine it seems .. and while using corresponding port number should be used in the url.

  Was this answer useful?  Yes

sampra

  • Feb 20th, 2008
 

yaa as u asked quesion we can install but some tim it will run somtim not depend on luck...

  Was this answer useful?  Yes

jcafe

  • Jul 7th, 2008
 


You are first installed the Tomcat server.

second is write to u'r pc enviroment variable to
                       CATALINAHOME :   c:TOMCAT
                        JAVA-HOME      :    C:JDK...
                         CLASS-PATH   :C:TOMCATCONFLIBservlet_api.jar;
                          path               :c:jdkbin;
third step :c:tomcatconftomcat-user.xml ,change to user role

  Was this answer useful?  Yes

uncer

  • Jan 17th, 2010
 

Follow these step;
1. Set JAVA_HOME=C:/JDK
2  SET CATALINA_HOME=C:/TOMCAT
3. CLASSPATH=C:/servlet.jav;.;jsp.jar;
Then go into tomcat folder search servlet.jar copy short cut paste at desktop and double click.

  Was this answer useful?  Yes

Multiple instances of tomcat server can be run on any machine using the following steps.

Copy zip installer from Apache.org
unzip in C:/Tomcat
set Environment variable as
CATALINA_HOME C:/Tomcat
JDK_HOME <path to JDK installattion directory>

In C: drive create following folders
Tomcat1, Tomcat2, Tomcat3

under the folders Tomcat1, Tomcat2, Tomcat3
copy all the folders from Tomcat directory except bin and lib folders

Navigate to bin directory under tomcat
create startup files for Tomcat1, Tomcat2, Tomcat3

start1.bat, start2.bat and start3.bat

as shown below
//start1.bat

set CATALINA_BASE = C:/Tomcat1
start Catalina.bat


//start2.bat
set CATALINA_BASE = C:/Tomcat1
start Catalina.bat

similarly for Tomcat3

under Tomcat1 navigate to conf directory and edit server.xml file
and modify port numbers for start, shutdown for all the servers such that all port are unique.
Similarly, modify server.xml files for Tomcat2 and Tomcat3

Now got to bin directory of Tomcat
and run start1.bat, start2.bat and start3.bat

All 3 Tomcat servers should start running simulataneously






  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions