Hi Cynick,

     I got a bit further along your "getting started" page.  Now I'm having
trouble running "mytomcat.sh start".  I seem to have various kinds of
problems with permissions, and once I fixed that, I got an error that says
"BASEDIR environment variable is not defined correctly".

It probably has something to do with my permissions on the laptop (I'm not
the owner) and this chunk of code (inside catalina.sh):
if $os400; then
  # -r will Only work on the os400 if the files are:
  # 1. owned by the user
  # 2. owned by the PRIMARY group of the user
  # this will not work if the user belongs in secondary groups
  BASEDIR="$CATALINA_HOME"
  . "$CATALINA_HOME"/bin/setclasspath.sh
else
  if [ -r "$CATALINA_HOME"/bin/setclasspath.sh ]; then
    BASEDIR="$CATALINA_HOME"
    . "$CATALINA_HOME"/bin/setclasspath.sh
  else
    echo "Cannot find $CATALINA_HOME/bin/setclasspath.sh"
    echo "This file is needed to run this program"
    exit 1
  fi
fi

I've copied and pasted my interactions with the Terminal.  I think you can
make out what I was diong by reading it.  For what it's worth, I also
attached mytomcat.sh. Please give me suggestions for moving forward.

Thanks,
Hiroki

172:~ hiroki$ ls -l mytomcat.sh
-rw-r--r--   1 hiroki  hiroki  1938 Feb  4 20:57 mytomcat.sh

172:~ hiroki$ chmod 755 mytomcat.sh

172:~ hiroki$ ls -l mytomcat.sh
-rwxr-xr-x   1 hiroki  hiroki  1938 Feb  4 20:57 mytomcat.sh

172:~ hiroki$ ./mytomcat.sh start
./mytomcat.sh: line 34: /usr/local/apache-tomcat-5.5.20/bin/startup.sh:
Permission denied

172:~ hiroki$ sudo ./mytomcat.sh start
Password:
Sorry, try again.
Password:
./mytomcat.sh: line 34: /usr/local/apache-tomcat-5.5.20/bin/startup.sh:
Permission denied

172:~ hiroki$ sudo ./mytomcat.sh start
./mytomcat.sh: line 34: /usr/local/apache-tomcat-5.5.20/bin/startup.sh:
Permission denied

172:~ hiroki$ su
Password:
su: Sorry      # IT LOOKS LIKE I DON'T HAVE ROOT ACCESS TO THIS LAPTOP.
TONY DOES.

172:~ hiroki$ sudo ./mytomcat.sh start
./mytomcat.sh: line 34: /usr/local/apache-tomcat-5.5.20/bin/startup.sh:
Permission denied

172:~ hiroki$ ls -l /usr/local/apache-tomcat-5.5.20/bin/startup.sh
-rw-r--r--   1 hiroki  hiroki  1173 Sep 12 10:10 /usr/local/apache-
tomcat-5.5.20/bin/startup.sh

172:~ hiroki$ whoami
hiroki

172:~ hiroki$ ./mytomcat.sh start
./mytomcat.sh: line 34: /usr/local/apache-tomcat-5.5.20/bin/startup.sh:
Permission denied

172:~ hiroki$ less mytomcat.sh

172:~ hiroki$ ls/usr/local/apache-tomcat-5.5.20/bin/
-bash: ls/usr/local/apache-tomcat-5.5.20/bin/: No such file or directory

172:~ hiroki$ ls /usr/local/apache-tomcat-5.5.20/bin/
bootstrap.jar           cpappend.bat            service.bat
startup.sh              tool-wrapper.sh
catalina-tasks.xml      digest.bat              setclasspath.bat
tomcat-juli.jar         version.bat
catalina.bat            digest.sh               setclasspath.sh
tomcat-native.tar.gz    version.sh
catalina.sh             jkstatus-tasks.xml      shutdown.bat
tomcat5.exe
commons-daemon.jar      jmxaccessor-tasks.xml   shutdown.sh
tomcat5w.exe
commons-logging-api.jar jsvc.tar.gz             startup.bat
tool-wrapper.bat

172:~ hiroki$ ls -l /usr/local/apache-tomcat-5.5.20/bin/startup.sh
-rw-r--r--   1 hiroki  hiroki  1173 Sep 12 10:10 /usr/local/apache-
tomcat-5.5.20/bin/startup.sh

172:~ hiroki$ ls -l /usr/local/apache-tomcat-5.5.20/bin/tomcat5.exe
-rw-r--r--   1 hiroki  hiroki  53248 Sep 12 10:11 /usr/local/apache-
tomcat-5.5.20/bin/tomcat5.exe

172:~ hiroki$ ls -l mytomcat.sh
-rwxr-xr-x   1 hiroki  hiroki  1938 Feb  4 20:57 mytomcat.sh

172:~ hiroki$ chmod 755 /usr/local/apache-tomcat-5.5.20/bin/startup.sh

172:~ hiroki$ ./mytomcat.sh start
Cannot find /usr/local/apache-tomcat-5.5.20/bin/catalina.sh
This file is needed to run this program

172:~ hiroki$ chmod 755 /usr/local/apache-tomcat-5.5.20/bin/catalina.sh

172:~ hiroki$ ./mytomcat.sh start
The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SAIL-Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/SAIL-Dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Attachment: mytomcat.sh
Description: Bourne shell script

Reply via email to