tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonat...@opencloud.com
Subject Re: multiple JVM's, multiple ports Tomcat 4.1
Date Wed, 30 Jan 2002 21:06:00 GMT
On Wed, Jan 30, 2002 at 01:04:37PM -0800, August Gresens wrote:
> 
> On Tuesday, January 29, 2002, at 04:45 PM, jonathan@opencloud.com wrote:
> 
> >On Tue, Jan 29, 2002 at 07:31:38PM -0800, August Gresens wrote:
> >>Using the method described in the RUNNING.txt that comes with the 
> >>Tomcat
> >>installation, I'm trying to install multiple instances of Tomcat 4.1 on
> >>a Linux server, so that multiple developers can work independently.
> >>
> >>I'm running into some problems, however. Here is what I have done so
> >>far..
> >>
> >>1. I copy the appropriate directories (conf, webapps, work, logs) from
> >>the Tomcat installation into a directory in my user's home directory
> >>called "tomcat"
> >>1. I configure the CATALINA_BASE ENVIRONMENT for each user to be
> >>CATALINA_BASE=$HOME/tomcat
> >>2. In USER B's server.xml file, I change the port attribute of the
> >>Connector element to be 8081 (not used by my machine).
> >
> >Try changing <Server port="8005" shutdown="SHUTDOWN" debug="0"> to
> >use a different port number.
> >
> >Also, have you disabled the AJP1.3 connector on port 8009?
> >
> >
> 
> I've tried changing the server port to no avail. The AJP1.3 Connector 
> was commented out (the default).
> 
> What other ports are in use?
> 
> Has anyone had any success doing this at all?

Sort of... I just configed two of my tomcats to work in a simalar way to
your setup. (I'm using 4.0.2B2 - what ever that release was... :)

I've attached one of the server.xml files with all the comments removed.
The file does a little more than you wanted... It also sets up ajp13
ports for mod_jk.

For each tomcat, make the numbers with ### around them unique.


<Server port="###11005###" shutdown="SHUTDOWN" debug="0">

  <Service name="Tomcat-Standalone">

    <Connector className="org.apache.catalina.connector.http.HttpConnector"
               port="###8081###" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="10" debug="0" connectionTimeout="60000"/>

    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="###11009###" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0"/>

    <Engine jvmRoute="###tomcat1###" name="Standalone" defaultHost="localhost" debug="0">

I hope this helps.
Jonathan.

Mime
View raw message