didnt manage to reproduce your issue on trunk

classloader is correct.

static should be fine. Called twice but fine.
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-03-22 1:14 GMT+01:00 BobbyBear <[email protected]>:
>
> ok, it took me a bit but i've learned more from creating a minimal example.
>
> i now am not sure if this is actually an issue or not.
>
> the problem occurs when you create a static logger within an EJB class, in
> my case a Stateless EJB:
>
> ex:
>
> @Stateless
> public class SillyBean {
> static final Logger logger = LogManager.getLogger();
> .
> .
> .
>
> However, the problem goes away when you change this to not be static:
>
> @Stateless
> public class SillyBean {
> final Logger logger = LogManager.getLogger();
> .
> .
> .
>
> I admit, I don't know whether you *SHOULD* be able to create a static logger
> in an EJB... so I'm not sure if this is a problem or not. What do you think?
>
>
>
>
>
>
> --
> View this message in context: 
> http://openejb.979440.n4.nabble.com/log4j2-initialized-too-early-tp4668307p4668313.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to