I'm using log4j with Allaire's JRun product.  I have the log4j-VERSION jar 
all set up in the WEB-INF/lib directory with my web app and all seems very 
happy and works fine.

Except, when my servlet (from which I'm logging stuff) gets garbage 
collected, log4j doesn't seem to want to reinitialize correctly when the 
servlet is later reinstantiated, so basically, if I want my servlet's 
logging to come back to life, I have to restart my jrun server.  And that's 
no good.

Upon the attempted re-initialization of my servlet, I get the following 
messages from log4j in my stderr:

log4j:ERROR A "org.apache.log4j.DailyRollingFileAppender" object is not 
assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR Could not instantiate appender named "A1".
log4j:ERROR A "org.apache.log4j.net.SMTPAppender" object is not assignable 
to a "org.apache.log4j.Appender" variable.
log4j:ERROR Could not instantiate appender named "ML".
log4j:WARN No appenders could be found for logger (HelloSso2Servlet).
log4j:WARN Please initialize the log4j system properly.

Please note:  If I restart jrun the initialization is compeletely fine; 
everything works with no problems.  The messages above result when my 
servlet is unloaded by Jrun, and later re-instantiated.

Thanks for any help,
Whit



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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

Reply via email to