• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

multiple tomcat 5 setting???

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the browser display this message "The page cannot be displayed"
many thanks
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://web.bvu.edu/staff/david/index.jsp?section=main&subsection=

good luck
 
none oftheabove
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
If you try to please everybody, your progress is limited by the noisiest fool. And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic