I haven't tried this, but you could pass along a -Dcatalina.base=%CATALINA_BASE%


When running the batch files to start Tomcat, the environment variable CATALINA_BASE, if specified, declares where your custom instance of Tomcat is with its own conf/server.xml (along with the other config files). If it isn't specified, CATALINA_BASE ends up being the same as CATALNIA_HOME. Try it out and see if it works for you.

Note that for the instructions to work, you at least need CATALNIA_HOME and CATALINA_OPTS defined.

Jake

At 09:24 AM 4/1/2003 -0600, you wrote:
The main issue this does not *seem* to resolve, unless I am missing
something, is that there does not seem to be a place here for properly
configuring the ports for a second or third tomcat on the same machine.
Additional Tomcats need their own ports, correct?

One solution to this *may* be to edit the service you just created
(i.e., open up properties for the service), and add an "additional
parameter" using the -config parameter.  I believe (not sure) the syntax
is
  -config conf/server.xml
where each instance would presumably use a different server.xml (named
appropriately) and specifying different ports.  The conf/ is a relative
path to your Tomcat home directory, however you *may* be able to fully
specify a path to a unique server.xml file.  I believe this is NT
service speak for the -F option (bin\Tomcat.exe -F server.xml) that
existed at least in Tomcat 3.2.

One thing I'm still looking for an answer to is how to specify a
different classpath for a second or third Tomcat service, other than the

-Djava.class.path parameter, i.e., the equivalent of the old
wrapper.properties file (assuming wrapper.properties is no longer
supported in Tomcat 4.1).  Anyone have any info on this?  The classpath
in web.xml doesn't seem to work for me, unless I have the syntax wrong.

Andrew Longley

-----Original Message-----
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 8:23 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 As A Windows Service


See: http://www.mattkelli.com/tech/tomcat/ntservice.htm

Jake

At 05:52 PM 3/31/2003 -0600, you wrote:
>Hi,
>
>I have a need for multiple tomcats on Windows.  I can't find any doco
on
>the jakarta website for doing this.
>
>Installing Tomat and choosing the "NT Service" option doesn't help me
>because I need multiple tomcats, not just one.
>
>I'm using Tomcat 4.0.6.  I can install one tomcat as a service with
>tomcat.exe, but how do I set %CATALINA_BASE% so I can install more than
one
>service and have it point to the right conf files?
>
>Any help would be greatly appreciated.
>
>Thanks,
>Tom Johnson
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

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

Reply via email to