W
willirl
I've got a webapp that uses log4j for logging. The log4j.properties
file is in the classes directory of the application. Logging works
fine.
Problem is when I try to (using ANT) redeploy the application. This
first removes the application then installs a new jar.
It appears that Tomcat is unable to remove the log4j.properties file
because it is "in use". (The application has been stopped at this
point). So the new install fails until I manually restart tomcat at
which point the properties file can be deleted and all works fine.
Any ideas of how I can get Tomcat to "release" the properties file.
Is this a bug in log4j = not closing properties file after reading it?
file is in the classes directory of the application. Logging works
fine.
Problem is when I try to (using ANT) redeploy the application. This
first removes the application then installs a new jar.
It appears that Tomcat is unable to remove the log4j.properties file
because it is "in use". (The application has been stopped at this
point). So the new install fails until I manually restart tomcat at
which point the properties file can be deleted and all works fine.
Any ideas of how I can get Tomcat to "release" the properties file.
Is this a bug in log4j = not closing properties file after reading it?