I am using log4j in my J2EE application. We use RAD for our deevlopment and the application server is WAS 6.0. We used to place the log4j.properties in the properties folder of the application server and it was working fine. But now we are asked to put the properites file with in the application EAR itself. How to do that ?
Put it in the same directory where you would put jar files in the EAR. The properties file just has to be in the classpath so that should work correctly. You should probably have the log4j.jar file in the EAR as well, it's probably higher in the classloader hierarchy than the WAR file is.