You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gary Zhu <gz...@timeicr.com> on 2005/05/24 23:29:09 UTC

Help with Tomcat 5.5.x on redhat-release-3ES-7.4

Hi all, 
 
When trying to start tomcat 5.5.4(tried 5.5.7 and 5.5.9) on OS
"redhat-release-3ES-7.4", I always get the following error:
'/catalina.sh: /usr/local/tomcat/bin/setclasspath.sh: line 74: syntax
error near unexpected token `do
'/catalina.sh: /usr/local/tomcat/bin/setclasspath.sh: line 74: `    for
i in "$OSXHACK"/*.jar; do
 
Of course, all the three versions have been working fine with other
redhat linux versions such as "redhat-release-9-3". 
 
Any advice is appreciated.
 
Thanks.
 
Gary


Re: Help with Tomcat 5.5.x on redhat-release-3ES-7.4

Posted by Jason Bainbridge <jb...@gmail.com>.
On 5/24/05, Gary Zhu <gz...@timeicr.com> wrote:
> Hi all,
> 
> When trying to start tomcat 5.5.4(tried 5.5.7 and 5.5.9) on OS
> "redhat-release-3ES-7.4", I always get the following error:
> '/catalina.sh: /usr/local/tomcat/bin/setclasspath.sh: line 74: syntax
> error near unexpected token `do
> '/catalina.sh: /usr/local/tomcat/bin/setclasspath.sh: line 74: `    for
> i in "$OSXHACK"/*.jar; do
> 
> Of course, all the three versions have been working fine with other
> redhat linux versions such as "redhat-release-9-3".

Strange maybe RHEL3-ES-7.4 (whatever all that means) somehow does more
syntax checking than usual and enteres that IF even though it doesn't
need to and barfs it as a result so try editing setclasspath.sh and
comment out the below lines:

# OSX hack to CLASSPATH
JIKESPATH=
if [ `uname -s` = "Darwin" ]; then
  OSXHACK="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes"
  if [ -d "$OSXHACK" ]; then
    for i in "$OSXHACK"/*.jar; do
      JIKESPATH="$JIKESPATH":"$i"
    done
  fi
fi

Hopefully that will make it happy. :)

Regards,
-- 
Jason Bainbridge
http://kde.org - webmaster@kde.org
Personal Site - http://jasonbainbridge.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org