It would be easier to diagnose your problem if you would post up your log4j
properties file.  Can you tell if your ServletContextListener is
reinitializing log4j after the web app is reloaded?

Ken

> -----Original Message-----
> From: Antony Paul [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 22, 2004 9:00 AM
> To: Log4J Users List
> Subject: Re: No appenders could be found for logger()
> 
> 
> The name of the class is BasicTimerTask. I renamed it for 
> posting. It works
> fine before the web application is reloaded. All other 
> servlets and JSPs
> work even after reloading. Also Log4J is initialised in a
> ServletContextListener with PropertyConfigurator.configure() 
> method. I think
> there is nothing wrong with log4j.properties because 
> everything else works
> fine.
> 
> Antony Paul
> 
> ----- Original Message -----
> From: "Jacob Kjome" <[EMAIL PROTECTED]>
> To: "Log4J Users List" <[EMAIL PROTECTED]>
> Sent: Monday, March 22, 2004 7:13 PM
> Subject: Re: No appenders could be found for logger()
> 
> 
> > What does your properties file look like?  Did you provide 
> an appender in
> > the root logger or did you just define a logger for 
> BasicTimerTask and
> give
> > it an appender?  Actually, shouldn't that logger be named 
> "MyTimeTask",
> not
> > "BasicTimerTask" or was that a typo?
> >
> > Jake
> >
> > At 03:23 PM 3/22/2004 +0530, you wrote:
> > >Hi all,
> > >     No appenders could be found for logger. This error is 
> show when a
> web
> > >application is reloaded. It is emitted only for a class.
> > >     I am using Log4J for logging in my web application 
> and it runs on
> JDK
> > >1.4.1. It have the log4j jar in web-inf\lib and log4j.properties in
> > >web-inf\classes. These two files are nowhere else in 
> Tomcat. I am almost
> > >satisfied with it. Now I have a problem when Logger is 
> used in a class
> which
> > >extends a java.util.TimerTask(It is only experimental). 
> After reloading
> the
> > >application the error message is printed only for this 
> particular class.
> > >This is the code I am using to get a Logger.
> > >
> > >public class MyTimerTask extends TimerTask{
> > >  private static Logger logger = 
> Logger.getLogger(BasicTimerTask.class);
> > >}
> > >     What is wrong with it ?.
> > >
> > >Antony Paul
> > >
> > 
> >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

Reply via email to