> Here is the troubleshoot guide from jakarta:
> http://jakarta.apache.org/log4j/docs/TROUBLESHOOT.html#duplicates
I figured as much as this link says - it is most likely due to the same
appender being installed multiple times in the container.
First thing to try is to upgrade to Cayenne Beta 4. Configuration class in
Beta 4 is smarter in respect to logging, and checks if a root Category
already contains configured appenders before trying to stick its own.
If you are already on Beta 4, than this looks like a bug and we will need
to investigate more.
Andrus
> Hello.
>
> My war-file contains jars for cayenne. When I deploy a new war-file in
> JBoss+Tomcat each message from log4j is duplicated. If I have redeployed
> my app 4 times (same filename) each message from log4j are outputted 4
> times.
>
> The number of equal messages increases when
> org.objectstyle.cayenne.conf.Configuration sends the message "configured
> log4j with BasicConfigurator"
>
> I have the following code in my app before creating the first
> DataContext.
>
> Configuration.bootstrapSharedConfiguration(this.getClass());
> Configuration.configureCommonLogging(null);
>
> Does anyone know how to fix the problem?
>
> - Tore.
This archive was generated by hypermail 2.0.0 : Tue Jul 08 2003 - 10:17:53 EDT