Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Delivered-To: moderator for tomcat-dev@jakarta.apache.org Received: (qmail 68048 invoked from network); 6 Nov 2000 09:07:37 -0000 Received: from msp-26-164-160.mn.rr.com (HELO localhost.localdomain) (24.26.164.160) by locus.apache.org with SMTP; 6 Nov 2000 09:07:37 -0000 Received: from penguin-ext.wise.edt.ericsson.se (penguin-ext.wise.edt.ericsson.se [194.237.142.110]) by localhost.localdomain (8.9.3/8.9.3) with ESMTP id DAA22974 for ; Mon, 6 Nov 2000 03:14:46 -0600 Received: from ks.ericsson.se (ms.ks.ericsson.se [150.132.40.28]) by penguin.wise.edt.ericsson.se (8.11.0/8.10.1/WIREfire-1.3) with ESMTP id eA6978Z21920 for ; Mon, 6 Nov 2000 10:07:08 +0100 (MET) Received: from einkp10992.ljunggren.net (einkp10992 [150.132.43.231]) by ks.ericsson.se (8.8.8+Sun/8.8.8) with ESMTP id KAA18610 for ; Mon, 6 Nov 2000 10:07:06 +0100 (MET) Message-Id: <4.3.2.7.2.20001106100351.027a6b28@einmail> X-Sender: ljunggren.net:andreas@127.0.0.1 (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Mon, 06 Nov 2000 10:05:53 +0100 To: BugRat Mail System From: Andreas Ljunggren Subject: Re: BugRat Report #332 has been filed. In-Reply-To: <2127983568.973195591926.JavaMail.nobody@fatman> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N 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: > > > >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: tomcat-dev-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org