Uploaded image for project: 'JBoss Logging'
  1. JBoss Logging
  2. JBLOGGING-126

log4j detection broken in OSGi

XMLWordPrintable

      This was introduced by a change in JBLOGGING-94

      The test for log4j was changed from:

      Class.forName("org.apache.log4j.Hierarchy", true, cl);
      

      to:

      Class.forName("org.apache.log4j.config.PropertySetter", true, cl);
      

      However the OSGi package imports where not updated to also include "org.apache.log4j.config". And this the latter test for "PropertySetter" will always fail in OSGi.

      The fix should be pretty simple. Simply import "org.apache.log4j.config" as optional in addition.

              jperkins-rhn James Perkins
              jreimann-2 Jens Reimann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: