tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Clar" <>
Subject file in the WEB-INF/classes directory is not being found and loaded
Date Tue, 25 Nov 2008 17:33:53 GMT


I'm migrating from Tomcat 5.5.4 to 6.0.18.  On version 5.5.4 we were
able to create two separate log files: catalina.out for System.err, and
traffic.log for the application.  

In version 6.0.18 I'm unable to recreate this scenario.  I've followed
the Tomcat documentation
(  I have a in $CATALINA_HOME/lib which loads the catalina.out file
correctly.  The traffic.log file is the one causing problems.  Per
Tomcat's documentation, I have a file in the
traffic/WEB-INF/classes directory.  This file is not being loaded for
some reason.

What happens is the output from the traffic webapp is showing up in
catalina.out.  The traffic webapp loads and runs without issue, it just
doesn't have its own log file.

I've checked the classpath by turning on debugging and verified the
traffic/WEB-INF/classes directory is in the classpath.   I've also
turned on log4j debugging with -Dlog4j.debug and verified that only the
the catalina.out properties file is loading.


I tried configuring the file manually in java, but the
results are the same:  no traffic.log file.  Here's the snippet I used:


File logConfFile= new File("/traffic/WEB-INF/classes/");

I've researched the source code for log4j and Tomcat but I haven't found
any leads at this point.  Researching the Tomcat bug database turns up
one bug ( but
the answers indicate modifying the file.  I'm not
sure I should I do that.

Bill Clar

Java: 1.6.10
System: Fedora, Release 9 (Sulphur)
Kernel Linux

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message