Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 26710 invoked from network); 3 Feb 2006 17:25:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Feb 2006 17:25:45 -0000 Received: (qmail 43888 invoked by uid 500); 3 Feb 2006 17:25:29 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 43871 invoked by uid 500); 3 Feb 2006 17:25:28 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 43860 invoked by uid 99); 3 Feb 2006 17:25:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2006 09:25:28 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of placson@gmail.com designates 64.233.162.195 as permitted sender) Received: from [64.233.162.195] (HELO zproxy.gmail.com) (64.233.162.195) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2006 09:25:26 -0800 Received: by zproxy.gmail.com with SMTP id 34so673019nzf for ; Fri, 03 Feb 2006 09:25:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=IUbccsnKTL1kvBv9hBZoMYF9f6wHX8CAVSvdw/1r6LLATse8+kSQalc2/4y4v4197CTB3lLMSZyjvb3QvSpYpH1cOyYJ70WXCNxRnwKQvMVSFgnjaEt6bKOfnjplDB6SyLTV6eBdfUoKyNGf1rmtvabtQqfSgU6fSiuHkmjjTmw= Received: by 10.65.112.14 with SMTP id p14mr1303105qbm; Fri, 03 Feb 2006 09:25:05 -0800 (PST) Received: by 10.65.225.16 with HTTP; Fri, 3 Feb 2006 09:25:05 -0800 (PST) Message-ID: <72112a50602030925m1c497de6vc79c80726fc15a31@mail.gmail.com> Date: Fri, 3 Feb 2006 09:25:05 -0800 From: Patrick Lacson To: Tomcat Users List Subject: Re: catalina.sh on os x In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11838_30417217.1138987505682" References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_11838_30417217.1138987505682 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks for the tips Ralph. I'm certain it's a script issue. As a work-around I copied the bin/*.sh scripts from the latest version of tomcat 5.5 and copied them to my tomcat 5.5.9 bin and all is working. Thanks! On 2/3/06, Ralph.Grothe@itdz-berlin.de wrote: > > Hi Patrick, > > although I lack any Tomcat knowledge as well as MAC OS experience > I think that is a mere scripting issue. > > The syntax errors you produced after your commenting out of the > OS check must be a follow on. > I think you only missed to comment every line from the case > block, > so the "case" line should be included. > > But the command not found simply implies that there is no "uname" > command in the MAC OS's shell. > Sorry, as said, I have never got access to a MAC why I cannot > tell what kind of shells it's using. > I only read about it that it is a modified FreeBSD (or Darwin?). > > My FreeBSD experience is somewhat limited. > I'd suggest to look for a manpage "man environ" or "man -k > environ", > which will list all the environment vars a shell login gets > automatically predefined. > Look at PATH, and what it is containing as the smallest common > denominator. > That's usually the environment init is running under. > But then again I only know the SysV init, and the BSDs have a > much conciser init procedure. > > Or login as the user who should start tomcat, and issue "echo > $PATH", "which uname", probably also as root, > "find / -type f -name uname -print". > If you found where the uname command hides in a MAC OS, either > prepend the full path in the catalina.sh to > any occurance of uname, or better yet set PATH explicitly at the > to of the script. > > > > > > -----Original Message----- > > From: Patrick Lacson [mailto:placson@gmail.com] > > Sent: Friday, February 03, 2006 8:25 AM > > To: Tomcat Users List > > Subject: catalina.sh on os x > > > > > > Hi all. > > > > I've been trying to get tomcat 5.5.9 to run on Mac OS 10.4.4 > > and when I run > > the stock catalina.sh script this is what I get. > > > > $ sh catalina.sh > > : command not found4: > > 'atalina.sh: line 48: syntax error near unexpected token `in > > 'atalina.sh: line 48: `case "`uname`" in > > > > I then modify the catalina.sh script to comment out the OS > > check as follows: > > > > # OS specific support. $var _must_ be set to either true or > false. > > cygwin=3Dfalse > > os400=3Dfalse > > #case "`uname`" in > > #CYGWIN*) cygwin=3Dtrue;; > > #OS400*) os400=3Dtrue;; > > #esac > > > > But when I run it again it complains about: > > > > $ sh catalina.sh > > : command not found4: > > : command not found2: > > : command not found5: > > catalina.sh: line 203: syntax error near unexpected token > `elif' > > 'atalina.sh: line 203: `elif [ "$1" =3D "run" ]; then > > > > I don't see any mismatching if statements.. Anybody have a > working > > catalina.sh on OS X 10.4.4? > > > > Thanks > > > > -- > > Patrick > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > -- Patrick ------=_Part_11838_30417217.1138987505682--