tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BobbyBear <>
Subject Re: log4j2 initialized too early?
Date Fri, 04 Apr 2014 23:54:04 GMT
I have a small eclipse project at

which shows the issue.

DaBean is a Stateless EJB with a property called "logger" which is
initialized to log4j2.

There are two lines which allow me to initialize it in two different ways:

[1] initializing it with "static" creates a log file called
".${web:contextPath}.log" which is incorrect

[2] initializing it without "static" create a log file called
"TestLog4j2.log" which is correct

I am using tomcat 7.0.53 but have seen the behavior with 7.0.52 as well. I
pulled the latest trunk for tomee to see if the issue has gone away, but it
has not. 

By creating a war for each scenario and deploying, starting and stopping in
tomcat/bin... you will see the log files created there upon startup.

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message