--- Peter Neu <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> I'm stopping & restarting tomcat ervery night with a cron job. I do this
> because we have many applications running and sometimes we need to simply 
> clean the system. 
> 
> The cron job invokes a shell script which then starts tomcat with jsvc. Up
> to now this worked fine. But now tomcat does not restart again 
> and I get this confusing error message: 
> 
> -----catalina.out--------------
> jsvc.exec error: Service exit with a return value of 143
> Apr 5, 2006 12:45:00 AM org.apache.catalina.startup.Catalina load
> WARNING: Can't load server.xml

Either permission problem or CATALINA_HOME not set.

> ------shell-script--------------------
> 
> JAVA_HOME1=/usr/local/jdk1.5.0_04
>  CATALINA_HOME=/usr/local/jakarta-tomcat-5.5.9
>  DAEMON_BIN=/usr/local/jakarta-tomcat-5.5.9/bin/jsvc
>  TOMCAT_USER=root
>  TMP_DIR=/var/tmp
>  CATALINA_OPTS="-Xmx2048m -Xms1536m"
>  CLASSPATH=/usr/local/java/lib/tools.jar:\
> $CATALINA_HOME/bin/commons-daemon.jar:\
> $CATALINA_HOME/bin/bootstrap.jar
>  
>  case "$1" in
>  start)
>  #
>  # Start Tomcat
>  #
>  $DAEMON_BIN \
>  -user $TOMCAT_USER \
>  -home $JAVA_HOME1 \
>  -Dcatalina.home=$CATALINA_HOME \

This should have done it. I'd check permissions.

Nix.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to