Tuesday, January 31, 2006 03:10 AM
I can't be bothered to check this (I got to, you know, work), but IIRC Log4j looks for the property file in the classpath. In an EAR file, there are several classloaders, each with it's own classpath - I recommend you do some googling and/or check WAS docs to learn about the classpath hierarchy. You have at least two options:
- In your EAR file's MANIFEST, put a Classpath entry which points (using a path relative to EAR root) to the property file, placed inside the EAR.
- Place the property file in a WAR's WEB-INF/lib directory - but be warned that it will not be visible to others WARs and EJBs.