Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple tomcat 5 setting???

 
Ami abbam
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Members

I am trying to run two Tomcat5 instances on the same machine and I am in trouble.
Section 4 in this document: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-5/RUNNING.txt?rev=1.5&view=auto talks about the setting in order to be able to run multiple instances from a single binary installation. But it does not seem working!!!

I changed every port in the second Tomcat server.xml: the http connector, the ajp connector and the shutdown port.

Any one have a solution?

Many Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you setting a separate CATALINA_HOME environment variable for each instance?
Bill
 
Ami abbam
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi William
Yes I did. I set 2 different env_variable for each instance. a CATALINA_HOME and CATALINA_BASE. It is very strange because I followed the document word by word but still no result.
Cheers
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, assuming Tomcat A is running and you start Tomcat B - exactly what happens?
 
Ami abbam
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the browser display this message "The page cannot be displayed"
many thanks
 
none oftheabove
Greenhorn
Posts: 6
 
none oftheabove
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

i'm back with a little more info this time...

The way i read the manual, it seems that the CATALINA_HOME/BASE issue is for multiple users having their own server on the same machine. If you're like me then you want a single user to have multiple instances of Tomcat on the same machine.

First, i eliminated the %CATALINA_HOME% and %JAVA_HOME% environment variables (System->Advanced->Environment). Next, i removed the references to those values from all of the files in [tomcat]\bin (where [tomcat] is the directory you choose to install the web server). Thank God for TextPad 'Find/Replace All' Finally, the ports in [tomcat]\conf\server.xml must be set so that they are dissimilar between installations (no overlap). Below are the specific values to look for (they can be any number up to 64000, i think, that isn't already used by your system):
one for the http connector (default 8080)
one for the ajp connector (8009)
one for the shutdown port (8005)

props = http://www.jguru.com/faq/view.jsp?EID=1060243

my values = http, ajp, shut: (1) 4445, 4005, 4009 (2) 7777, 5005, 5009

note: i'm skeptical about the stability of software that's been modified in this fashion since there may be some unforeseen conflict down the road. Use at your own risk...

havagood1,
D
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic