GeeCON Prague 2014*
The moose likes Tomcat and the fly likes One tomcat installation many tomcat instances Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "One tomcat installation many tomcat instances " Watch "One tomcat installation many tomcat instances " New topic
Author

One tomcat installation many tomcat instances

Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
Hello all
is there any way to install one tomcat installation in central place in the server
and then to start N instances from different accounts on the server with when each
account has its on serer configurations and wep applications ?
thanks for the help
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Yes, you do this by creating a directory for each instance,
Set a CATALINA_BASE environment variable for each of them,
and create the needed directories inside each.

It's been a while since I've done this:

From http://tomcat.apache.org:

(4) Advanced Configuration - Multiple Tomcat 4 Instances

In many circumstances, it is desirable to have a single copy of a Tomcat 4
binary distribution shared among multiple users on the same server. To make
this possible, you must configure a CATALINA_BASE environment variable (in
addition to CATALINA_HOME as described above) that points to a directory
that is unique to your instance.

When you do this, Tomcat 4 will calculate all relative references for files in
the following directories based on the value for CATALINA_BASE instead of
CATALINA_HOME:

* conf - Server configuration files (including server.xml)

* logs - Log and output files

* shared - For classes and resources that must be shared across all web
applications

* webapps - Automatically loaded web applications

* work - Temporary working directories for web applications

* temp - Directory used by the JVM for temporary files (java.io.tmpdir)

If you do not set CATALINA_BASE to an explicit value, it will be initialized
to the same value as is set for CATALINA_HOME (which means that the same
directory is used for all relative path resolutions).





Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
GeeCON Prague 2014
 
subject: One tomcat installation many tomcat instances