logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Casazza, Robert" <Robert.Casa...@transamerica.com>
Subject Race Condition for ${web:contextPath} ?
Date Fri, 21 Mar 2014 01:01:02 GMT

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


________________________________

CONFIDENTIALITY NOTICE
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.

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