I am using log4j on my app. When I use it in my WSAD environment, log4j works fine, and logs are generated. But when I deploy the ear file onto Websphere server, I get an error message: "..log4j is not initialized properly, and that no appenders are found.." Additional Info: 1. log4j.xml is stored in WEB-INF/Classes under my project ear folder. 2. log4j jar file sits in the lib folder. 3. If i move log4j.xml into WAS_ROOT/AppServer/properties, it works fine. But i am not sure if this is the right thing to do, bcz i have multiple projects under AppServer, and they would have different versions of log4j properties, right? Any help is greatly appreciated. Thanks.
posted 15 years ago
This is some additional info that I wanted to add to the question
I tried DEBUG=TRUE, but that didnt really help.
If I move the log4j.xml higher up to properties under Appserver, it works, so I am assuming it is not really a problem with locating the jar files.
Is there anything that I need to specify on the WAS administrative console for it locate the properties file.