Chris Ruegger a �crit :

> I need to run multiple tomcat instances on a single machine each on a different port.
> Is there some documentation out there that explains how to configure this?
> Thanks!

Well.

The basic document give some interresting clues for it.

But i give yu some informations i sent to someone else.




Well yu can do some instances of Tomcat.
It works well.

All yu have to do it's to define different CATALINA_BASE directories and to build them
as the master.

i.e:

assume the first one by /web/Tomcat1
copy $CATALINA_HOME/conf in /web/Tomcat1/conf
create /web/Tomcat1
./logs
./work
./webapps

configure the /web/Tomcat1/Conf/server.xml

<Server port="8015" shutdown="SHUTDOWN" debug="0">    # yu set a port <> than other
../..



  <!-- Define an Apache-Connector Service -->
  <Service name="Tomcat-Apache">

    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
               port="8018" minProcessors="5" maxProcessors="75"     # yu set a
connection port <> than other
               enableLookups="true" appBase="webapps"
               acceptCount="10" debug="0"/>

    <!-- Replace "localhost" with what your Apache "ServerName" is set to -->
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
../..

Yu have now a brand new instanciation of the main Tomcat - realize then yu have no
obligation to run it..

Now yu can start it with something like that
$CATALINA_HOME/bin/Tomcat1_startup.sh

Tomcat1_startup.sh:

#!/bin/sh -x
# -----------------------------------------------------------------------------
# Start script for the CATALINA Server
#
# $Id: shutdown.sh,v 1.1.4.1 2002/01/30 18:10:40 patrickl Exp $
#
# V1.0  021902  Adapted for Cecile DELPONT by JLB on 02/19/2002
# -----------------------------------------------------------------------------

JAVA_HOME="My_Java_Dir"
CATALINA_HOME="My_Tomcat_Dir"
CATALINA_BASE="/web/Tomcat1"

export JAVA_HOME CATALINA_HOME CATALINA_BASE

BASEDIR=`dirname $0`

$CATALINA_HOME/bin/catalina.sh start "$@"

Same modification for the stop with Tomcat1_shutdown.sh

If yu got Apache with Warp Connector, just declare as many connectors than Tomcat
instances.

Virtual host 1
WebAppConnection WarpConnector warp localhost:8008

Virtual Host 2
WebAppConnection Cecile_Warp    warp    localhost:8018

And that's it, boy.

Hope this will help.

Jean-Luc B :0)


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to