--- tc5.5.x/container/catalina/src/bin/catalina.bat (revision 583638) +++ tc5.5.x/container/catalina/src/bin/catalina.bat (working copy) @@ -68,7 +68,12 @@ :okHome rem Get standard environment variables +if "%CATALINA_BASE%" == "" goto gotSetenvHome +if exist "%CATALINA_BASE%\bin\setenv.bat" call "%CATALINA_BASE%\bin\setenv.bat" +goto gotSetenvBase +:gotSetenvHome if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat" +:gotSetenvBase rem Get standard Java environment variables if exist "%CATALINA_HOME%\bin\setclasspath.bat" goto okSetclasspath --- tc5.5.x/container/catalina/src/bin/catalina.sh (revision 583638) +++ tc5.5.x/container/catalina/src/bin/catalina.sh (working copy) @@ -83,7 +83,9 @@ # Only set CATALINA_HOME if not already set [ -z "$CATALINA_HOME" ] && CATALINA_HOME=`cd "$PRGDIR/.." ; pwd` -if [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then +if [ -r "$CATALINA_BASE"/bin/setenv.sh ]; then + . "$CATALINA_BASE"/bin/setenv.sh +elif [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then . "$CATALINA_HOME"/bin/setenv.sh fi