Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-3128

Patch commons-logging to allow late binding of the Log4jLogger

    XMLWordPrintable

    Details

      Description

      A deployment that tries to used a overriden log4j configuration using a scoped deployment using the commons-logging LogFactory with a commons-logging.properties like:

      org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger

      fails to initialize log4j correctly because the commons-logging.jar is scoped to the jboss server/lib class loader and the log4j classes are also bound to this class loaders log4j.jar. A patch to modify the Log4JLogger to lazily bind to the log4j classes using the LogFactory caller class loader via reflection has been added to the 1.0.5.GA-jboss release of commons-logging.

      The previous org.apache.commons.logging.impl.Log4JLogger behavior can be found in the org.apache.commons.logging.impl.DefaultLog4JLogger class.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                starksm64 Scott Stark
                Reporter:
                starksm64 Scott Stark
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: