tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Mikusa <>
Subject Re: Trying to filter noise from catalina.out.
Date Wed, 05 Nov 2014 12:31:09 GMT
On Tue, Nov 4, 2014 at 6:12 PM, Brandon Darbro <>

> Looking for configuration help.
> Using tomcat7 7.0.34 from rpm package tomcat7-7.0.34-3.jpp6.noarch.
> Followed the instructions for using log4j for catalina.out found here:

These are instructions for using Log4j with Tomcat.  It would enable you to
control the files that Tomcat creates with log content.  This includes
files like catalina.yyyy-mm-dd.log, localhost.yyyy-mm-dd.log and other
files that by default have the date in their name, however it does not
allow you to control catalina.out.

The catalina.out file represents anything written to STDOUT or STDERR by
Tomcat or your applications.  This would include things like an application
directly writing to System.out or System.err or an application that is
configured to log to STDOUT / STDERR or as some logging framework's call it
the console.

If you have application's writing to STDOUT / STDERR directly, you can use
Tomcat's "swallowOutput" option to capture this output and run it through
the logging system.

If you have applications that are logging to STDOUT / STDERR, you can
control what's logged by editing the application specific logging
configuration or by instructing them to log to a file and not STDOUT /

For the record, Tomcat writes very little to STDOUT / STDERR and it doesn't
use EHCache so it's almost certain that the exception you're seeing is
coming from an application.


> Took the example file from the instructions above,
> corrected the logging paths for /var/log/tomcat7, and put it through a
> properties to xml converter.  Replaced with log4j.xml,
> and logging is working.
> Now we want to try and filter out an Exception we are willing to live
> with, but can't have overflowing our log.
> Added the following filter:
>     <filter class="org.apache.log4j.filter.ExpressionFilter">
>         <param name="expression" value="EXCEPTION ~=
>" />
>         <param name="acceptOnMatch" value="false"/>
>     </filter>
> Yet we continue to get the exception in the log:
> Nov 4, 2014 1:52:45 PM
> net.sf.ehcache.distribution.RMISynchronousCacheReplicator
> replicatePutNotification
> SEVERE: Exception on replication of putNotification. error marshalling
> arguments; nested exception is:
> Continuing...
> java.rmi.MarshalException: error marshalling arguments; nested exception
> is:
>         at sun.rmi.server.UnicastRef.invoke(
> ...snip...
> Caused by:
>         at
>         at
> ...snip...
> What am I doing wrong?  Full xml and/or log of error available if
> requested.
> *Brandon Darbro
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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