logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: log4j, JBoss, EJBs
Date Tue, 16 Sep 2003 15:11:36 GMT
At 04:06 PM 9/16/2003 +0300, you wrote:
>Now, what in the world does "Cause: java.lang.IllegalArgumentException: 
>Attempted to reset the LoggerFactory without possessing the guard." mean?

The "guard" is a simple object that protects against re-setting of the 
LoggerFactory by anyone but the one who set it first with a particular 
"guard".  Basically, this would allow a container to set the LoggerFactory, 
but disallow applications running in the container from changing it.  If 
the container holds a handle on the "guard" object, then it alone can 
change the LoggerFactory.  If no one holds a handle on the "guard" object, 
then no one can change the LoggerFactory once it is set the first time.

The setting of the LoggerFactory is, obviously, being called multiple 
times.  Either avoid the multiple calls, catch and ignore the exception, or 
hold a handle to the "guard" object and re-set the LoggerFactory each time 
(probably not necessary or desired).


To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

View raw message