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.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.