logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <rgo...@apache.org>
Subject Re: Race Condition for ${web:contextPath} ?
Date Fri, 21 Mar 2014 02:44:49 GMT
Are you using 2.0-rc1?  I fixed a bug that might be the same problem.


> On Mar 20, 2014, at 6:01 PM, "Casazza, Robert" <Robert.Casazza@transamerica.com>
> Hi,
> I'm having problems narrowing it down, but there seems to be a race condition of some
sort while using ${web:
> More often than not, it appears that the LoggerContext lc getExternalContext() is null
in the WebLookup getServletContext() method.
> Running on tomcat 7.0.52, decided to initialize log4j2 in the web.xml while debugging.
I haven't narrowed down the cause nor a workaround.
> Strangely, every so often the Lookup resolves correctly.
> Is there a workaround? Have you seen this behavior?
> Thanks,
> Bob
> ________________________________
> This transmission is intended for the sole use of the individual and/or entity to whom
it is addressed, and may contain information and/or attachments that are privileged, confidential
and exempt from disclosure under applicable law. If the reader of this transmission is not
the intended recipient, you are hereby notified that any disclosure, dissemination, distribution,
duplication or the taking of any action in reliance on the contents of this transmission by
someone other than the intended addressee or its designated agent is strictly prohibited.
If your receipt of this transmission is in error, please notify the sender by replying immediately
to this transmission and destroying the transmission. For your protection, do not include
Social Security numbers, passwords or other non-public and personal information in your email.
Thank you.

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

View raw message