users@glassfish.java.net

Re: log4j.properties outside ear

From: <Jan.Luehe_at_Sun.COM>
Date: Wed, 22 Aug 2007 11:37:43 -0700

glassfish_at_javadesktop.org wrote:

>Have you tried putting it in /domains/yourdomain/config directoy? I have not tried this myself, but this seems to be the "root" directory when referencing files without pointing to a directory. I use this for (other) properties files.
>
>

You need to make sure that the log4j.properties can be
found by your application's classloader, or any of its delegation
parents (if the log4j.properties is to be shared across applications),
since it is loaded using cl.getResource(), where "cl" is the thread's
context classloader.

Jan