Thanks to the forum,We finally solved the issue. The the logger class had problems in the getLogger method .
Regds Sri > -----Original Message----- > From: srividyar > Sent: Saturday, July 06, 2002 2:10 AM > To: '[EMAIL PROTECTED]' > Subject: Help required Urgently: og4j:WARN No appenders could be found for >logger issue > > Environment : > WAS 4.0, Log4j 1.2rc1 > > I am repeatedly getting the message "log4j:WARN No appenders could be found for >logger", I have double checked my config file, unable to find any issues with it. > Here's the snapshot of the console output > *************************************************************************] > log4j: Trying to find [log4j.properties] using context classloader >sun.misc.Launcher$AppClassLoader@5531ef88. > log4j: Trying to find [log4j.properties] using >sun.misc.Launcher$AppClassLoader@5531ef88 class loader. > log4j: Trying to find [log4j.properties] using ClassLoader.getSystemResource(). > log4j: Could not find resource: [log4j.properties]. > log4j: System property is :null > log4j: Standard DocumentBuilderFactory search succeded. > log4j: DocumentBuilderFactory is: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl > log4j: URL to log4j.dtd is >[jar:file:/C:/jars/log4j-1.2rc1.jar!/org/apache/log4j/xml/log4j.dtd]. > log4j: debug attribute= "true". > log4j: Threshold ="null". > log4j: Retreiving an instance of org.apache.log4j.Logger. > log4j: Setting [bpt] additivity to [true]. > log4j: Level value for bpt is [info]. > log4j: bpt level set to INFO > log4j: Class name: >[com.inf.common.audit.controller.logservices.ABDailyRollingFileAppender] > log4j: Setting property [file] to [r.log]. > log4j: Setting property [datePattern] to [yyyy-MM-dd-HH-mm]. > log4j: Setting property [layoutType] to [xml]. > log4j: Parsing layout of class: >"com.inf.common.audit.controller.logservices.ABXMLLayout" > log4j: setFile called: r.log, true > log4j: setFile ended > log4j: Appender [A1] to be rolled every minute. > log4j: Adding appender named [A1] to category [bpt]. > log4j: Level value for root is [info]. > log4j: root level set to INFO > log4j: Adding appender named [A1] to category [root]. > Inside the private constructore of LoggerManager > Hellow&&&&&&&&&&&&&&&&&&&&&&&&&& bptFactory nameclass >com.inf.common.audit.controller.logservices.ABLoggerFactory > ###########Before calling the call appenders HELLLLLLLLLLLLLLO > log4j:WARN No appenders could be found for logger (bpt).@@@@@@@@after the call > > log4j:WARN Please initialize the log4j system properly. > *************************************************************************] > > > I am using DomConifgurator to read the xml file. here's the snaphot of the config >file > *************************************************************************] > <?xml version="1.0" encoding="UTF-8" ?> > <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> > <log4j:configuration debug = "true" xmlns:log4j="http://jakarta.apache.org/log4j/" > > > <appender name="A1" >class="com.inf.common.audit.controller.logservices.ABDailyRollingFileAppender"> > <param name="File" value="r.log" /> > <param name="DatePattern" value="yyyy-MM-dd-HH-mm" /> > <param name="LayoutType" value="xml"/> > > <layout class="com.inf.common.audit.controller.logservices.ABXMLLayout"> > > </layout> > </appender> > > <category name="bpt" additivity = "true"> > > > <priority value="info"/> > <appender-ref ref="A1"/> > </category> > > <root> > <priority value ="info"/> > <appender-ref ref="A1"/> > </root> > </log4j:configuration> > *************************************************************************] > > > What i dont understand is that the file seems to be read completely.On the design >front this is how are doing it.We have extended the Logger, >LoggerManager,XMLlayout,Level,Dailyrollingfileappender,Repositoryselector and the >Loggerfactory.> > > The extension are for the following > 1) to provide for a duration based logging > 2) to provide for a configurable layout type(XML/txt) > 3) to have logical hierarchies > 4) custom level off below info and on above info. > 5) choice of appender between daily rolling file and JMS appender depending on >deployment. > > tks > Sri > > > > > > > > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>