users@glassfish.java.net

No-Interface EJB 3.1 breaks log4j initialization

From: <glassfish_at_javadesktop.org>
Date: Tue, 19 Oct 2010 03:14:31 PDT

I just tried to change one of my @Stateless EJBs to be one of them newfangled 'No-Interface' EJBs by removing "implements FooLocal".

But now log4j won't initialize (see below). That's [i]really weird[/i]! I have my log4j.properties in the WAR:s WEB-INF/classes. (All packed in an EAR). It has worked without a hitch until this. Anyone has a clue?

[#|2010-10-19T11:47:42.890+0200|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=24;_ThreadName=Thread-1;|log4j:WARN No appenders could be found for logger (com.facilitylabs.controlserver.web.MainContextListener).|#]

[#|2010-10-19T11:47:42.890+0200|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=24;_ThreadName=Thread-1;|log4j:WARN Please initialize the log4j system properly.|#]

[i][/i][i][/i]
[Message sent by forum member 'tmpsa']

http://forums.java.net/jive/thread.jspa?messageID=485562