You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lakshmi Venkataraman <la...@foundrynet.com> on 2007/08/18 22:38:19 UTC
Logging.properties not found
We use Tomcat 5.5.23 on all platforms (Solaris, Linux and Win XP).
On Solaris, I see the following message when Tomcat is shutdown.
./shutdown.sh:
-Djava.util.logging.config.file=/export/home/lakshmi/Tomcat/conf/logging
.properties: not found
Here is an excerpt from the shutdown script:
---------- BEGIN EXCERPT ---------------------------------
MAINCLASS=org.apache.catalina.startup.Bootstrap
export MAINCLASS
ACTION=stop
export ACTION
JAVA_OPTS=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogMana
ger
-Djava.util.logging.config.file="$CATALINA_BASE/conf/logging.properties"
export JAVA_OPTS
LD_LIBRARY_PATH=$CATALINA_HOME/bin:$CATALINA_HOME/libexec:$CATALINA_HOME
/conf:$LD_LIBRARY_PATH
export $LD_LIBRARY_PATH
PATH=$CATALINA_HOME/bin:$INM_HOME/bin:$CATALINA_HOME/conf:$PATH
export $PATH
CLASSPATH includes $CATALINA_HOME/conf/logging.properties
$JAVA_HOME/bin/java $JAVA_OPTS
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH"
-Dcatalina.base="$CATALINA_BASE" -Dcatalina.home="$CATALINA_HOME"
-Djava.io.tmpdir="$CATALINA_TMPDIR" $MAINCLASS $ACTION
--------------------------------- END EXCERPT ----------------
As you can see, $PATH, $LD_LIBRARY_PATH, $CLASSPATH all point to
$CATALINA_HOME/conf location.
Any clue why the message about logging.properties not being found is
printed?
Thanks
Lakshmi
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Logging.properties not found
Posted by Rainer Jung <ra...@kippdata.de>.
Your assignment to JAVA_OPTS seems to consist of multiple lines. You
need to end all apart from the last with a backslash "\", so that the
shell executing the script understands, that the following lines still
contain content for the variable.
The error doesn't say, that it can't file a config file, it tells us
that the shell tried to execute a file named
-Djava.util.logging.config.file=/export/home/lakshmi/Tomcat/conf/logging.properties
which it couldn't find.
BTW: It's not the original shutdown script, so it's not a bug in Tomcat.
Regards,
Rainer
Lakshmi Venkataraman wrote:
>
>
> We use Tomcat 5.5.23 on all platforms (Solaris, Linux and Win XP).
> On Solaris, I see the following message when Tomcat is shutdown.
> ./shutdown.sh:
>
> -Djava.util.logging.config.file=/export/home/lakshmi/Tomcat/conf/logging
> .properties: not found
>
> Here is an excerpt from the shutdown script:
> ---------- BEGIN EXCERPT ---------------------------------
> MAINCLASS=org.apache.catalina.startup.Bootstrap
> export MAINCLASS
> ACTION=stop
> export ACTION
>
> JAVA_OPTS=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogMana
> ger
> -Djava.util.logging.config.file="$CATALINA_BASE/conf/logging.properties"
> export JAVA_OPTS
>
> LD_LIBRARY_PATH=$CATALINA_HOME/bin:$CATALINA_HOME/libexec:$CATALINA_HOME
> /conf:$LD_LIBRARY_PATH
> export $LD_LIBRARY_PATH
> PATH=$CATALINA_HOME/bin:$INM_HOME/bin:$CATALINA_HOME/conf:$PATH
> export $PATH
> CLASSPATH includes $CATALINA_HOME/conf/logging.properties
>
> $JAVA_HOME/bin/java $JAVA_OPTS
> -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH"
> -Dcatalina.base="$CATALINA_BASE" -Dcatalina.home="$CATALINA_HOME"
> -Djava.io.tmpdir="$CATALINA_TMPDIR" $MAINCLASS $ACTION
>
> --------------------------------- END EXCERPT ----------------
> As you can see, $PATH, $LD_LIBRARY_PATH, $CLASSPATH all point to
> $CATALINA_HOME/conf location.
>
> Any clue why the message about logging.properties not being found is
> printed?
>
> Thanks
> Lakshmi
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org