-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 10/18/2011 10:50 AM, Caldarale, Charles R wrote:
>> From: chad.da...@emc.com [mailto:chad.da...@emc.com] Subject:
>> TOMCAT_BASE and TOMCAT_HOME
> 
>> I'm reading Tomcat: The Definitive Guide
> 
> Better to read the real Tomcat documentation, including the 
> RUNNING.txt file in the download.
> 
>> This means that for multiple instances to work, each Tomcat 
>> instance has to have its own set of these directories; they 
>> cannot be shared by two differently configured Tomcat JVM 
>> instances."
> 
> The book is somewhat suspect

Plus, Jason is a terrible liar. :)

No, there's more context to that quote (from Chapter 2, under
"Relocating the Web Applications Directory" around the middle of page 40):

"
The trick to making this work is that you must set the CATALINA_HOME
environment variable to where you installed the Tomcat binary
distribution (these files come from http://tomcat.apache.org), and you
must set the CATALINA_BASE environment variable to a different path
where you are storing a JVM instance’s files (these files come from
you). When you have both of these environment variables set and you
start Tomcat, it will run using your files in CATALINA_BASE, on top of
the Tomcat binary distribution in CATALINA_HOME. This is built-in
feature of Tomcat allows you to keep Tomcat’s files separate from your
files, but still makes it possible to modify everything you need to
modify to configure everything the way you need it to be.
"

Chad, I think TC:TDG was suggesting that if you wanted separate
libraries for a particular webapp (say, a JDBC driver),. you will want
to create instance-specific lib directories. Note that no current
version of Tomcat (6.0, 7.0) uses the "shared" versus "common" class
loaders anymore (by default -- you can put them back if you really
want), so we're just talking about CATALINA_BASE/lib at this point.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6d9c0ACgkQ9CaO5/Lv0PB5OgCghwH4xX/nX6vdqSXSI7W3FIfb
TIsAn162bOy5hmfQ6lQQ/n03SlnMtNC8
=SKtT
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to