You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Updike, Clark" <Cl...@jhuapl.edu> on 2001/11/21 23:54:52 UTC

can't redirect default logging

I'm trying to configure all Tomcat 4 logging to go to a particular location
on our unix server.  I did not give Tomcat write permissions to
$CATALINA_HOME thinking that none would be required if I reset all logging
directories in server.xml to the writeable location I specified.  But when I
run Tomcat, I get the following error:

touch: 0652-046 Cannot create /usr/jakarta-tomcat-4.0/logs/catalina.out.
The file access permissions do not allow the specified action.
/usr/jakarta-tomcat-4.0/bin/catalina.sh[204]:
/usr/jakarta-tomcat-4.0/logs/catalina.out: 0403-005 Cannot create the spec
ified file.

Inside catalina.sh, around line 204, I see the following (### comments are
mine):

CODE:
elif [ "$1" = "start" ] ; then  ### if you are starting Tomcat

  shift
  touch $CATALINA_BASE/logs/catalina.out ### WHY??? I don't want to log
there!!!
  <snip...>
  org.apache.catalina.startup.Bootstrap "$@" start \
     >> $CATALINA_BASE/logs/catalina.out 2>&1 &  ### error because can't
create the file
END CODE:

Why does catalina.sh automatically log there even when you are trying to
send all logging elsewhere?

TIA,
Clark

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>