tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert P. J. Day" <rpj...@crashcourse.ca>
Subject Re: linux users who unload from zip file can't start tomcat
Date Sat, 02 Apr 2011 17:56:15 GMT
On Sat, 2 Apr 2011, Pierre Goupil wrote:

> Yes, but the download page says that .tar.gz is recommended for Unix / Linux
> and .zip for Windows, IIRC.
>
>
> On Sat, Apr 2, 2011 at 12:41 PM, sebb <sebbaz@gmail.com> wrote:
>
> > On 2 April 2011 10:35, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
> > >
> > >  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.
> >
> > Unfortunately Zip does not support such attributes.
> >
> > >  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/startup.sh" will get:
> > >
> > >  Cannot find bin/catalina.sh
> > >  This file is needed to run this program
> > >
> > > and that's because of this test in startup.sh:
> > >
> > >  if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
> > >    echo "Cannot find $PRGDIR/$EXECUTABLE"
> > >    echo "This file is needed to run this program"
> > >    exit 1
> > >  fi
> > >
> > > the catalina.sh script is there, of course, it's just not executable
> > > so startup.sh (misleadingly) claims it doesn't exist.
> >
> >  Agreed, the message is misleading.
> >
> > >  experienced linux users will probably notice what's going on
> > > immediately, but others might be thoroughly confused.

#1:  don't top post.

#2:  the advice is still wrong.  there is a distinct difference
between "recommended" and "required".  if you choose to defend what
you *imagine* you're reading there, feel free.  i, on the other hand,
am criticizing (for good reason) what is *actually* there.

rday

-- 

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

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


Mime
View raw message