logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sohan <sohan.kas...@mms.gov>
Subject log4j.dtd file not found
Date Tue, 10 Apr 2007 17:30:14 GMT

Hi,

My goal is to get separate logging for each application deployed on the same
weblogic instance using Log4j loaded once during startup. 

I tried couple of test web applications using Log4j.xml file and seems to be
working. To test the same with my current application, I copied log4j.xml,
very basic minimal configuration. During the weblogic startup, I Am getting
the error - 
Log4j.dtd is not found, I tried copying this Log4j.dtd file into WEB-INF
folder same location as Log4j.xml file and WEB-INF/lib folder.

How do I resolve this?

Also, I tried without SYSTEM entry. weblogic startsup without errors. Is it
OK to remove this entry? Assuming xml is correct! In a java class file, I
have both static methods and instance methods. I changed the Logger
declaration to be non-static, 
private Logger log = Logger.getLogger(LoginFilter.class); 
and with in the static methods to    Log log = LogFactory.getLog("pcs"); 
pcs is the log file name. In this case only Logging from static methods is
taking place. Logging from instance methods is not occuring! LogFactory does
not exist in Log4j.jar. Is there another way to log in static methods
without using LogFactory?

Any info in seeing my errors would be helpful
thanks,
Sohan



-- 
View this message in context: http://www.nabble.com/log4j.dtd-file-not-found-tf3554384.html#a9924450
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message