logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47465] New: Reading configuration files from a JAR locks the JAR file
Date Thu, 02 Jul 2009 10:20:50 GMT

           Summary: Reading configuration files from a JAR locks the JAR
           Product: Log4j
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Configurator
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: markt@apache.org

If a log4j configuration file is found by the classpath search inside a JAR
file, the file will be loaded from the JAR. However, the initial
URLConnection.getDefaultUseCaches() setting means that caching is used and the
JAR file is locked.

This is a particular problem for container environments like Tomcat, as it
prevents a web application from being removed. Whilst the workaround is simple
- don't put your log4j configuration in a JAR - it impacts a large number of

I have a patch and test case for PropertyConfigurator. I still need to test
DOMConfigurator. I will update this bug report with the results of that test
(and a patch if necessary) later today.

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message