This is not the case for me.  I have verified which work directory is being
used by removing everything in the work directory at both the top level
and the instance level before starting Tomcat.  After starting Tomcat,
I noticed that the top level work directory is being used.  I can get around
that by setting the workDir attribute for the ContextManager in server.xml.
But now I need to customize the other configuration files in conf for each
instance.

By the way, I am running Tomcat 3.2.1 on Solaris 7.

Bill

Kitching Simon wrote:

> > -----Original Message-----
> > From: William Au [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 17, 2001 3:42 PM
> > To:   [EMAIL PROTECTED]
> > Cc:   Kitching Simon
> > Subject:      Re: Multiple Tomcat instances on one machine
> >
> > Besides server.xml, how do I setup Tomcat so that each instance has its
> > own copy
> > of the other configuration files (tomcat-users.xml, workers.properties,
> > etc) in conf?
> > I don't see anyway of setting the path to the conf directory.  Is that
> > always based on
> > $TOMCAT_HOME?
> >
> > Bill
>         [Kitching Simon]
>         I have noticed that merely by specifying the -f flag for the
> server.xml,
>         the work directory is assumed to be at location ../work relative to
>         the server.xml file. As I don't use any other config files (though
> the
>         work directory location is significant for me), this does the job.
>
>         I presume that all the other config files are looked for in the same
>         directory as the server.xml file. Is this not the case??
>
> > -------------------------------------------------------
> >
> >
> > Hi William,
> >
> > Tomcat *can* share binaries across multiple running instances.
> > However, as I found the docs a bit confusing when I tried to
> > get this working, here's how to do it:
> >
> > create the following directory structure for each instance (eg under
> > each user's home directory if you want an instance per user):
> >
> > somedirname
> >   + conf
> >      + server.xml
> >   + work
> >
> > Start tomcat with the -f option, specifying the appropriate server.xml:
> >
> > $TOMCAT_HOME/bin/tomcat.sh start -f /somedirname/conf/server.xml
> >
> > I use a single <context> tag with an absolute docBase
> > in the server.xml to indicate where the webapp's files are,
> > but I guess you could create a webapps directory as a sibling
> > to the "conf" directory to hold webapps. I guess that you can
> > also point multiple instances to the same docBase - but
> > haven't tried it.
> >
> > Cheers,
> >
> > Simon
> > > -----Original Message-----
> > > From: William Au [SMTP:[EMAIL PROTECTED]]
> > > Sent: Thursday, January 11, 2001 3:10 PM
> > > To:   [EMAIL PROTECTED]
> > > Subject:      Multiple Tomcat instances on one machine
> > >
> > > I would like to run multiple Tomcat instances on one machine, each
> > using
> > > a different
> > > port number.  Do I need to have a seperate, full copy ofTOMCAT_HOME
> > for
> > > each
> > > instance?  Or can I just have one common set of binaries with multiple
> >
> > > server.xml
> > > and other configuration files?
> > >
> > > Bill
> > >


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to