This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes log4j.properties file outside application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "log4j.properties file outside application" Watch "log4j.properties file outside application" New topic
Author

log4j.properties file outside application

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 219
Hi all,

In my EJB 2.0 web application I have used log4j for java files as well as in jsp files of .war.
And most important thing my log4j.properties file is not in the .ear.
It is in another zip file outside application(.ear).
My question is how do my web application(.ear) will recognize the log4j.properties file which is outside .ear?
Where do I need to refer that properties file and how(which is inside a zip)?


Thanks in Advance,
Kousik
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3268

The log4j.properties needs to be on the CLASSPATH of your application, if the log4j.properties in your other zip file is accesible in a CLASSPATH manner, then you'll be OK. I'm doubting that it will pick up a properties file in a ZIP archive though.


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: log4j.properties file outside application
 
Similar Threads
Enabling/Installing Struts Tiles
How to write zip files into another zip file..?
where to place log4j.properties file
Jboss can not recognize custom log4j.properties file
Log4j problem in Websphere