• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

catalina home

 
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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



Regards
Vasanth.
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
anyway what is the use of CATALINA_HOME ?
Why we set this variable?
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Saloon Keeper
Posts: 28102
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Hey! You're stepping on my hand! Help me tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic