My servlet is getting compiled but I am getting following message at the server startup promt: log4j init method called log4j:ERROR Parsing error on line 0 and column 0 log4j:ERROR File "jar:/E:/log4j/jakarta-log4j-1.1.3/docs/api/org/apache/log4j/xml/doc-files/log4j.dt d" not found. log4j:ERROR Could not parse input source [org.xml.sax.InputSource@392bf5]. org.xml.sax.SAXException: Stopping after fatal error: File "jar:/E:/log4j/jakarta-log4j-1.1.3/docs/a pi/org/apache/log4j/xml/doc-files/log4j.dtd" not found. .........
Thanks, sunita >From: Kris Schneider <[EMAIL PROTECTED]> >Reply-To: "Log4J Users List" <[EMAIL PROTECTED]> >To: Log4J Users List <[EMAIL PROTECTED]> >Subject: Re: Antw: Log4j initiallization file in xml format >Date: Fri, 16 Aug 2002 17:23:19 -0400 > >Not sure if that's another typing mistake, but the class name is >actually org.apache.log4j.xml.DOMConfigurator (capital "DOM"). If you're >compiling with other Log4j classes, there's no reason you shouldn't be >able to use DOMConfigurator. > >Make sure you've got a copy of the Log4j JAR file in the WEB-INF/lib >directory of your web app. Also be sure to place your log4j.xml file in >the WEB-INF/classes directory of your web app. > >By default, Log4j will look for a log4j.properties file on the >classpath. You can modify this behavior through the log4j.configuration >system property. So, you can either set this property to log4j.xml for >the app server's JVM or you'll have to write some initialization code >using DOMConfigurator. > >Quoting sunita agrawal <[EMAIL PROTECTED]>: > > > That was typing mistake . I tried to use DomConfigurator but my servlet > > is > > not getting compiled because of it. > > > > thanks, > > sunita > > > > >From: "Frank-Olaf Lohmann" <[EMAIL PROTECTED]> > > >Reply-To: "Log4J Users List" <[EMAIL PROTECTED]> > > >To: <[EMAIL PROTECTED]> > > >Subject: Antw: Log4j initiallization file in xml format > > >Date: Fri, 16 Aug 2002 08:47:52 +0000 > > > > > >Where is your appender named "FILE" that you reference for the "ASYNC" > > >appender? I gues you mean "A2" or like to rename appender "A2" => > > "FILE". I > > >think that help. > > > > > >Regards > > >Frank-Olaf Lohmann > > > > > > >>> [EMAIL PROTECTED] 15.08.2002 18.33 Uhr >>> > > >Dear All, > > > I have a properties file that I used to initialize log4j.And I was > > able > > >to log messages to log file.Now instead of the properties file in I am > > >using a file in xml format to intialize Log4j.I am using servlet > > >for the properties file but it seem that the log4j is not getting > > >initialized with following xml file: > > > > > ><?xml version="1.0" encoding="UTF-8"?> > > ><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> > > > > > ><log4j:configuration debug="true"> > > > > > > <appender name="ASYNC" class="org.apache.log4j.AsyncAppender"> > > > <appender-ref ref="FILE"/> > > > </appender> > > > > > > <appender name="A1" class="org.apache.log4j.RollingFileAppender"> > > > <param name="file" value="/export/home/log/app2.log > > >"/> > > > <param name="MaxFileSize" value="5000000"/> > > > <param name="MaxBackupIndex" value="1000000"/> > > > <layout class="org.apache.log4j.PatternLayout"> > > > <param name="ConversionPattern" > > > value="%d %u %-5p [%C] %c %x (%F:%L) - > > %m%n"/> > > > </layout> > > > </appender> > > > > > > > > ><appender name="A2" class="org.apache.log4j.RollingFileAppender"> > > > <param name="file" value="/export/home/log/app1.log > > >"/> > > > <param name="MaxFileSize" value="5000000"/> > > > <param name="MaxBackupIndex" value="1000000"/> > > > <layout class="org.apache.log4j.PatternLayout"> > > > <param name="ConversionPattern" > > > value="%d %-5p %c{1} %M - %m%n > > >"/> > > > </layout> > > > </appender> > > > > > > > > > > > > > > > > > > <category name="app2category" additivity="false"> > > > <priority value="DEBUG"/> > > > <appender-ref ref="A2"/> > > > </category> > > > > > > > > > > > > <category name="app1category" class="mycom.log4jlog.app2Category" > > >additivity="false"> > > > <priority value="INFO"/> > > > <appender-ref ref="ASYNC"/> > > > <appender-ref ref="A1"/> > > > </category> > > > > > > <root> > > > <priority value="INFO"/> > > > <appender-ref ref="ASYNC"/> > > > <appender-ref ref="A1"/> > > > </root> > > > > > ></log4j:configuration> > > > > > > > > >But iam getting following error message: > > >log4j:WARN No appenders could be found for logger (app2category). > > > > > > > > >Thanks, > > >sunita > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_________________________________________________________________ > > >Join the worldÆs largest e-mail service with MSN Hotmail. > > >http://www.hotmail.com > > > > > > > > >-- > > >To unsubscribe, e-mail: > > ><mailto:[EMAIL PROTECTED]> > > >For additional commands, e-mail: > > ><mailto:[EMAIL PROTECTED]> > > > > > > > > > > > >-- > > >To unsubscribe, e-mail: > > ><mailto:[EMAIL PROTECTED]> > > >For additional commands, e-mail: > > ><mailto:[EMAIL PROTECTED]> > > > > > > > > > > _________________________________________________________________ > > MSN Photos is the easiest way to share and print your photos: > > http://photos.msn.com/support/worldwide.aspx > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > >-- >Kris Schneider <mailto:[EMAIL PROTECTED]> >D.O.Tech <http://www.dotech.com/> > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>