wood burning stoves 2.0*
The moose likes Tomcat and the fly likes multiple tomcat 5 setting??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "multiple tomcat 5 setting???" Watch "multiple tomcat 5 setting???" New topic
Author

multiple tomcat 5 setting???

Ami abbam
Greenhorn

Joined: Apr 24, 2004
Posts: 7
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

Joined: Mar 22, 2000
Posts: 12761
    
    5
Are you setting a separate CATALINA_HOME environment variable for each instance?
Bill
Ami abbam
Greenhorn

Joined: Apr 24, 2004
Posts: 7
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

Joined: Mar 22, 2000
Posts: 12761
    
    5
OK, assuming Tomcat A is running and you start Tomcat B - exactly what happens?
Ami abbam
Greenhorn

Joined: Apr 24, 2004
Posts: 7
the browser display this message "The page cannot be displayed"
many thanks
none oftheabove
Greenhorn

Joined: Jul 17, 2004
Posts: 6
http://web.bvu.edu/staff/david/index.jsp?section=main&subsection=

good luck
none oftheabove
Greenhorn

Joined: Jul 17, 2004
Posts: 6
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
 
Don't get me started about those stupid light bulbs.
 
subject: multiple tomcat 5 setting???
 
Similar Threads
Stream and writer
XML special characters... how to encode them?
Compiled CGI on Tomcat
Lifecycle of a HttpServletRequest instance
DatasourceRealm connection pool exhausting