aspose file tools*
The moose likes Tomcat and the fly likes catalina home Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "catalina home" Watch "catalina home" New topic
Author

catalina home

Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
this is the path to my tomcat's bin file

D:\Alternate_C_Drive\apache-tomcat-6.0.16\bin

then what should i use as a CATALINA_HOME?
is it D:\Alternate_C_Drive or D:\Alternate_C_Drive\apache-tomcat-6.0.16 ?
Rj Vasanth kumar
Greenhorn

Joined: Aug 30, 2009
Posts: 5

Your's
CATALINA_HOME=D:\Alternate_C_Drive\apache-tomcat-6.0.16



Regards
Vasanth.


Vasanth

SCJP 5.0
Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
anyway what is the use of CATALINA_HOME ?
Why we set this variable?
sateesh narahari
Greenhorn

Joined: Jan 11, 2010
Posts: 3
Samanthi perera wrote:anyway what is the use of CATALINA_HOME ?
Why we set this variable?


CATALINA_HOME is used by Tomcat startup scripts and Tomcat itself. Tomcat converts it from an environment variable to a system property, which gets used in the Tomcat code. If you do not set CATALINA_HOME and start Tomcat using the startup scripts, it tries to set CATALINA_HOME.

For more help on getting started with Tomcat, you can checkout our Tomcat resource page here: http://www.mulesoft.com/understanding-apache-tomcat

Hope this helps.

Best Regards,
Sateesh Narahari
MuleSoft
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

Actually, there are two environment variables. CATALINA_HOME and CATALINA_BASE. For most of us, they'll both have the same value, and they'll point to the Tomcat directory. However, you can have multiple copies of Tomcat running on a machine. In this case, they may all have a common shared codebase, but they may be running different webapps, and they'll certainly be using different ports. So you set CATALINA_HOME to the tomcat directory, then create a separate directory for each Tomcat instance and launch it with a different CATALINA_BASE. The CATALINA_BASE directory contains a distinct copy of the conf, work, webapps, logs and temp directories.

I may have CATALINA_HOME and CATALINA_BASE backwards, so if you plan to use this feature, be sure to look it up in the Tomcat docs. After all these years, I can still never remember which is which. Like I said, it's a very useful feature, but not one that many of us commonly use.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
Consider Paul's rocket mass heater.
 
subject: catalina home