dcsimg
Log4J and WebSphere
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Michelle_Rhein
Posted On:   Friday, February 13, 2004 05:08 PM

Hi, I have an app that runs on websphere. log4J works perectly fine on my WSAD environment. But when I deploy the app to WAS, I get that annoying "No appenders could be found for logger .." error.



my log4j jar resides in the WAS_ROOT>AppServer>App.Ear folder and the log4j.xml file sits in WAS_ROOT>AppServer>App.ear>app.war>web-inf>classes along with the application-resources.properties file, log4j.dtd etc.



Does anyone have any idea what I am missing.



Thanks.

MR

Re: Log4J and WebSphere

Posted By:   Cory_Gill  
Posted On:   Thursday, February 19, 2004 12:33 PM


Our team faced the same difficulty using log4j on our WAS 4 server (AIX). After searching around I ended up reading the article:




http://www-306.ibm.com/software/webservers/appserv/doc/v40/ae/infocenter/was/rnclassholders.html




We made sure that the log4j-1-2-8.jar file was in the $WAS_HOME/lib/app directory as well as in the module classpaths. I switched the "Module Visibility" of the application server from "Module" to "Server" and now log4j operates properly.




Hope this helps...
Cory

About | Sitemap | Contact