Is the properties file called log4j.properties? That's the default name that it's 
expecting. If you want to call it something else
you'll need to set system property like:

log4j.configuration=file:/temp/myconfig.xyz#com.myCompany.myConfigurator

See the Default Initialisation Procedure chapter in:

http://jakarta.apache.org/log4j/docs/manual.html

Thanks

Nigel

--

Nigel Ramsay                                      [EMAIL PROTECTED]
Enterprise Java Consultant                           +44 20 7545 1590
Global Markets Research
Deutsche Bank
London, UK


---------------------------------------- Message History 
----------------------------------------


From: rao srinivas <[EMAIL PROTECTED]> on 07/09/2001 04:40 MST

Please respond to "LOG4J Users Mailing List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  error in properties file, help me please...please..please..please


Hi experts,

here is my properties file, which is in
Web-inf/classes:

log4j.rootCategory=R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=logtags.log
log4j.appender.R.MaxFileSize=100KB
log4j.appender.R.MaxBackupIndex=2
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c -
%m%n


I am getting the following error:
log4j:ERROR No appenders could be found for category
(root).
log4j:ERROR Please initialize the log4j system
properly.

I think, that properties file is not being accessed.
It is giving the same error, even properties file is
not in Web-inf/classes directory.

please help me out

Srinivas



__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to