• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CATALINA_BASE?

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am quite new to tomcat and hence i may be very naive in asking about the need to set CATALINA_BASE env variable?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No need. Use the supplied startup scripts and it sets it itself.
 
Priya Bindra
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how can i check what has been set as CATALINA_BASE? which process sets it? on every tomcat startup?

Because when i did tomcat installation, i did set windows env variable CATALINA_HOME to the tomcat directory.

Pardon me if my doubts sound silly.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The only environment variable you should set is JAVA_HOME.
 
Saloon Keeper
Posts: 27752
196
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

Bear Bibeault wrote:The only environment variable you should set is JAVA_HOME.



The startup scripts assume certain defaults. A quick check says that if you don't set CATALINA_HOME, it uses the parent of the bin directory for the script, and if you don't set CATALINA_BASE, it defaults to CATALINA_HOME.

When starting or stopping Tomcat via a command-line shell, the values of JRE_HOME, CATALINA_HOME, CATALINA_BASE and CATALINA_TMPDIR are printed to the command-line output (JRE_HOME defaults to JAVA_HOME). When you start Tomcat via a Windows Service, I'm not sure where the information gets logged (assuming it does). I don't usually run Tomcat on WIndows, so I've never investigated.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic