footh wrote:

[running more than one Tomcat on a single machine]

First off, I want to run Tomcat as a service and that
seems to talk about running multiple instances with
the startup script.

It is likely that you want to use one version of Tomcat to run your web sites. So, I assume you have downloaded a distribution and put it somewhere on your server. This location is called CATALINA_HOME. For a single instance CATALINA_HOME = CATALINA_BASE, i.e. no need to care about.


Second, item number 4 more or less says for multiple
instances "you can use CATALINA_BASE" as an argument
but doesn't really explain CATALINA_BASE.  Is it the
install directory of Tomcat?  Or is it a directory
where I have another set up "webapps" and context
configuration files.  I can't quite visualize what it
means to use CATALINA_BASE and how to set up the
directories.

If you want to have more than one operating system service, you must copy certain parts (mostly configuration files) from your CATALINA_HOME directory to a new location. This new directory is called CATALINA_BASE. A CATALINA_BASE is a directory containing configuration files etc. that are individual to an OS service. The executable files do not need to be copied since they will be re-used.


You need to call service.bat with appropriate parameters (CATALINA_BASE is the most important one) in order to install an OS service. The init-scripts (Unix) or registry settings (for Windows look around at HKEY_LOCAL_MACHINE\System\CurrentControlSet\SERVICES\Apache Tomcat) for the service always call the same tomcat executables. The service parameters determine wich config files to use.

So for each Tomcat instance, you need to change the server.xml in the specific CATALINA_BASE to have your services listening to different IP addresses and/or TCP ports (same changes for shutdown port and AJP connectors necessary).

I hope this helps. If it is not sufficient, I could provide you with a screenshot of my directory layout.

Wolfgang

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



Reply via email to