Github user thomasbeauvais commented on the issue:
https://github.com/apache/logging-log4j2/pull/128
I have fixed the whitespace.
What can I do to help you figure out why it wasn't being initialized? A
colleague and myself spent a couple hours debugging to find this. It very
strange behavior and seems to have been there for quite sometime. We have added
this exact fix, and now everything is started and stopped properly each time.
Out problem was that we are starting up a few of resources. Without this
fix, we noticed leaks on redeployment. The stop was never call since the
{{servletContext}} in the {{Log4jServletContextListener}} is always {{null}} no
matter what you do.
---