silpion / ansible-tomcat

Manage installation of Tomcat
Apache License 2.0
64 stars 57 forks source link

CATALINA_BASE vs CATALINA_HOME #33

Open jamroks opened 7 years ago

jamroks commented 7 years ago

Hi,

Thank you for the nice tomcat role, really well done sir ! but there's a small error in your "Readme" file when you say : "Tomcat uses two main paths: CATALINA_BASE which contains all common files and CATALINA_HOME which contains instance-specific files. Consequently, any webapp and configuration must be deployed to CATALINA_HOME which defaults to /srv/tomcat/catalina/tomcat"

In fact this isn't correct, It's the other way around. CATALINA_HOME = common file and binary CATALINA_BASE = Instance specific config and webapp ( e.g war file )

** From Official tomcat documentation ***** Throughout the docs, you'll notice there are numerous references to $CATALINA_HOME. This represents the root of your Tomcat installation. When we say, "This information can be found in your $CATALINA_HOME/README.txt file" we mean to look at the README.txt file at the root of your Tomcat install. Optionally, Tomcat may be configured for multiple instances by defining $CATALINA_BASE for each instance. If multiple instances are not configured, $CATALINA_BASE is the same as $CATALINA_HOME

Have a look to apache tomcat official documentation https://tomcat.apache.org/tomcat-7.0-doc/introduction.html

Cheers