tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Euan Guttridge <EGuttri...@buildonline.com>
Subject tomcat caching jsp to working directory (not /work)
Date Fri, 24 Oct 2003 10:56:41 GMT
When I start tomcat as root using /etc/init.d/tomcat start, which in turn
starts $CATALINA_HOME/bin/startup.sh as tomcat, tomcat attempts to cache all
jsps to the directory from which I ran /etc/init.d/tomcat start.. 

I can force jsps to cache to $CATALINA_HOME/work/... by setting SCRATCHDIR
in $CATALINA_HOME/conf/web.xml but this is a workaround not a resolution. 

Any ideas?


Thanks
Euan



_____________________________________________________

>From : /etc/init.d/tomcat

#!/bin/bash
#
# chkconfig:
# description: Startup script for Tomcat

# Source function lib
. /etc/init.d/functions

RETVAL=$?

case "$1" in
  start)
        if [ -f $CATALINA_HOME/bin/startup.sh ];
          then
            echo $"Starting Tomcat"
            /bin/su tomcat $CATALINA_HOME/bin/startup.sh
        fi
        ;;
  stop)
        if [ -f $CATALINA_HOME/bin/shutdown.sh ];
          then
            echo $"Stopping Tomcat"
            /bin/su tomcat $CATALINA_HOME/bin/shutdown.sh
        fi
        ;;
  *)
        echo $"Usage: $0 {start|stop}"
        exit 1
        ;;
esac

exit $RETVAL
____________________________________________________________________________
__
>From : $CATALINA_HOME/bin/startup.sh

#!/bin/sh
#
----------------------------------------------------------------------------
-
# Start Script for the CATALINA Server
#
# $Id: startup.sh,v 1.2 2002/01/15 02:55:38 patrickl Exp $
#
----------------------------------------------------------------------------
-

# resolve links - $0 may be a softlink
PRG="$0"

while [ -h "$PRG" ] ; do
  ls=`ls -ld "$PRG"`
  link=`expr "$ls" : '.*-> \(.*\)$'`
  if expr "$link" : '.*/.*' > /dev/null; then
    PRG="$link"
  else
    PRG=`dirname "$PRG"`/"$link"
  fi
done

PRGDIR=`dirname "$PRG"`
EXECUTABLE=catalina.sh

# Check that target executable exists
if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
  echo "Cannot find $PRGDIR/$EXECUTABLE"
  echo "This file is needed to run this program"
  exit 1
fi

exec "$PRGDIR"/"$EXECUTABLE" start "$@"


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


Mime
View raw message