Hmm.. I included a patch in the "work around" field, but it looks
like the system either drooped it, or hides it.
Well, I include it here for safety:
*** tomcat.sh.orig Thu Nov 2 20:24:53 2000
--- tomcat.sh Thu Nov 2 20:35:53 2000
***************
*** 74,79 ****
--- 74,89 ----
if [ -z "$JAVA_HOME" ] ; then
JAVA=`which java`
+ while [ -L "$JAVA" ]; do
+ ls=`/bin/ls -ld "$JAVA"`
+ link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'`
+ if /usr/bin/expr "$link" : '/' > /dev/null; then
+ JAVA="$link"
+ else
+ JAVA="`/usr/bin/dirname $JAVA`/$link"
+ fi
+ done
+
if [ -z "$JAVA" ] ; then
echo "Cannot find JAVA. Please set your PATH."
exit 1
Regards
/Andreas Ljunggren
At 14:06 2000-11-02 -0600, you wrote:
>Bug report #332 has just been filed.
>
>You can view the report at the following URL:
>
> <http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/332>
>
>REPORT #332 Details.
>
>Project: Tomcat
>Category: Bug Report
>SubCategory: New Bug Report
>Class: swbug
>State: received
>Priority: medium
>Severity: serious
>Confidence: public
>Environment:
> Release: 3.2b6
> JVM Release: 1.2.2
> Operating System: Linux
> OS Release: Redhat 7.0
> Platform: i686
>
>Synopsis:
>Error when resolving java_home if java is a symbolic link
>
>Description:
>The file tomcat.sh asumes that `which java` finds the real
>java program.
>But if java is a sumbolic link,
>e.g. /usr/bin/java -> /usr/java/bin/java,
>it will set java_home to /usr, and
>try to find /usr/lib/tools.jar instead of /usr/java/lib/tools.jar.
>This will make tomcat.sh fail to detect a java 1.2.x environment and will
>ultimatly fail to use jsp pages.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]