It's working, thank you -----Original Message----- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: January 3, 2007 12:54 PM To: Log4J Users List Subject: RE: Undeploying problem with Tomcat 5.5 and Log4J
Quoting "Gilbert, Antoine" <[EMAIL PROTECTED]>: > Does calling the shutdown() method will cause problems to the other Web > apps using Log4j within the Tomcat instance ? Depends where Log4j.jar is. If it is in WEB-INF/lib, then definitely no. If it is in common/lib and don't use a repository selector, then it would be a problem. If you use a repository selector, then it would only affect your webapp's logger repository and wouldn't be a problem. Jake > > -----Original Message----- > From: Jacob Kjome [mailto:[EMAIL PROTECTED] > Sent: January 3, 2007 11:37 AM > To: Log4J Users List > Subject: Re: Undeploying problem with Tomcat 5.5 and Log4J > > > Do you call LogManager.shutdown() in the shutdown method of a > ServletContextListener? If not, do so and try again. > > Jake > > Quoting "Gilbert, Antoine" <[EMAIL PROTECTED]>: > > > Hi list > > > > > > > > I deploy an application WAR on a Tomcat 5.5 instance. This application > > use Log4j (via commons-logging) and create some logs in a file within > > the related Web app directory (/webapps/myWebApp). The file is defined > > by a file appender tag in my log4j.xml file. > > > > > > > > The problem is when I undeploy this Web app, my Web app directory > can't > > be deleted because of the log file; it seems to be locked by Tomcat. > > > > > > > > Any idea? > > > > > > > > > > > > > --------------------------------------------------------------------- > 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]
