users@glassfish.java.net

log4j in an ear

From: Comerford, Sean <Sean.Comerford_at_espn.com>
Date: Fri, 7 May 2010 15:30:01 -0400

So I have an ear that contains a single stateless EJB and a Jersey based web app.

I have separate log4j configs for the EJB and the war.

My app is working fine but it doesn’t appear to be picking up the log4j.properties files.

Been googling around for awhile but haven’t seen an answer that works for me.

Right now I have something like this:

* nhl-service.ear
    - nhl.war
> WEB-INF/classes/log4j.properties
    - ejb.jar
> log4j.properties
    - ... other dependent jars ...

Can anyone set met straight here?

--
Sean Comerford, Software Engineer
ESPN.com Site Architecture Group
Office: 860.766.6454    Cell: 860.329.5842