2010/7/12 Rainer Frey <rainer.f...@inxmail.de>:
> Hi,
>
> in the default case (just one instance, supplied start scripts), CATALINA_BASE
> is set to CATALINA_HOME. But this assignment,
>
> if [ -z "$CATALINA_BASE" ] ; then
>  CATALINA_BASE="$CATALINA_HOME"
> fi
>
> is done *after* reading setenv.sh. Is this for a specific reason, or just
> accidently?
>

I think that in the following lines of
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/bin/catalina.sh?view=markup

120     if [ -r "$CATALINA_BASE"/bin/setenv.sh ]; then
121     . "$CATALINA_BASE"/bin/setenv.sh
122     elif [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then
123     . "$CATALINA_HOME"/bin/setenv.sh
124     fi

the line 120 should be something like
if [ -n "$CATALINA_BASE" ] && [ -r "$CATALINA_BASE"/bin/setenv.sh ]; then

(that is already fixed in trunk in a different way).


In any case, if CATALINA_BASE is not set,
$CATALINA_BASE/bin/setenv.sh cannot be read (chicken vs. egg), and in
that case $CATALINA_HOME/bin/setenv.sh is read.

That is nearly the same result as if there was assignment
CATALINA_BASE="$CATALINA_HOME" before.


So, what is your problem?
You must set CATALINA_BASE before calling the standard scripts, if you
need this feature of distinct CATALINA_HOME vs. CATALINA_BASE. This
feature is not enabled by default.


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to