https://issues.apache.org/bugzilla/show_bug.cgi?id=43867





--- Comment #59 from Gili <[EMAIL PROTECTED]>  2008-08-06 13:00:44 PST ---
Aaron,

Thanks for clarifying further how this bug may occur. Okay, so I'm fine with
omitting the error message but only during the Tomcat shutdown cycle.

1) How are you going to reactivate the error message once the clearReferences
method is complete?

2) Can we safely assume that no other webapp will use log4j while it is being
shut down?

I suspect the answer to both the above questions is that Tomcat uses a
different class-loader per Webapp so Log4j will never get shared between them.
So once log4j is shut down it should, in theory, never come back to life.

BTW: Why does Tomcat need to null out the references if the class-loader is
being unloaded (hence all the classes inside it are being unloaded anyway)? Is
it reusing the same class-loader if a webapp is reloaded? In such a case I
think this fix isn't so clear-cut. We need to ensure that log4j doesn't end up
in a corrupt state once the shutdown process is complete. How can we guarantee
this?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to