tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert P. J. Day" <>
Subject linux users who unload from zip file can't start tomcat
Date Sat, 02 Apr 2011 09:35:36 GMT

  i just noticed that users on a linux/unix system that unload tomcat7
from the zip file are going to have trouble running it since the bin/
scripts are not marked executable in the zip file.

  if tomcat7 is unloaded from the tar ball, then everything will work
fine since the scripts are executable.  but from the zip file, they
aren't, which means someone who runs "sh bin/" will get:

  Cannot find bin/
  This file is needed to run this program

and that's because of this test in

  if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
    echo "Cannot find $PRGDIR/$EXECUTABLE"
    echo "This file is needed to run this program"
    exit 1

the script is there, of course, it's just not executable
so (misleadingly) claims it doesn't exist.

  experienced linux users will probably notice what's going on
immediately, but others might be thoroughly confused.



Robert P. J. Day                               Waterloo, Ontario, CANADA


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message