Results 1 to 3 of 3
- 07-01-2009, 12:05 PM #1
Member
- Join Date
- Jul 2009
- Posts
- 2
- Rep Power
- 0
Log4J properties file locked by tomcat
Hi all,
I am running log4j in a webapplication. But when I try to undeploy the app, the application does not get undeployed completely and cleanly. The log4j.properties file stays on the server, all other files are deleted from the webapp's folder.
How do I ensure that this file is released when the webapp is undeployed. LogManager.shutdown() in the method contextDestroyed(ServletContextEvent sce) does not seem to stop the logging.
Regards,
N
- 07-09-2009, 04:00 PM #2
Member
- Join Date
- Jul 2009
- Posts
- 1
- Rep Power
- 0
Files locked by log4j
What versions of Tomcat, log4j.jar, JAVA are you using?
What is the location of the log4j.properties files?
Can u post the contents of the log4j.properties file?
- 07-14-2009, 07:42 AM #3
Member
- Join Date
- Jul 2009
- Posts
- 2
- Rep Power
- 0
Versions
Hi,
The versions are as follows:
Tomcat/5.5.20
log4j 1.2.14
Jdk 1.5
Location of Log4j file in the war file:
<<ApplicationNameFolder>>/build/classes
My application has a thread running that continuously logs into a log file. How do i stop this logging.
The log4j.properties file does not get locked onto Tomcat version 6.0.16. (But the currently running version cannot be replaced with this version)
Regards,
NLast edited by namrata014; 07-14-2009 at 08:06 AM.
Similar Threads
-
Tomcat iBatis log4j
By Tokajac in forum Web FrameworksReplies: 0Last Post: 07-17-2008, 03:02 PM -
Log4j - setting up name of log file
By Virkant Pawar in forum New To JavaReplies: 3Last Post: 06-03-2008, 07:39 AM -
log4j property file in my application
By Peter in forum Advanced JavaReplies: 3Last Post: 06-14-2007, 03:12 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks