Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1467

[OSGi] Missing import package

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.2
    • 2.7
    • API
    • None
    • Enterprise OSGi application

    Description

      The Import-Package statement in log4j-api-2.6.2.jar is missing the package "org.apache.logging.log4j.core.lookup". This results in the following log output while starting a enterprise OSGi application:

      Blueprint Extender: 3 WARN JNDI lookup class is not available because this JRE does not support JNDI. JNDI string lookups will not be available, continuing configuration. java.lang.ClassNotFoundException: org.apache.logging.log4j.core.lookup.JndiLookup
      at java.lang.Class.forName(Class.java:256)
      at org.apache.logging.log4j.util.LoaderUtil.loadClass(LoaderUtil.java:122)
      at org.apache.logging.log4j.util.LoaderUtil.newInstanceOf(LoaderUtil.java:141)
      at org.apache.logging.log4j.util.LoaderUtil.newCheckedInstanceOf(LoaderUtil.java:168)
      at org.apache.logging.log4j.core.util.Loader.newCheckedInstanceOf(Loader.java:301)
      at org.apache.logging.log4j.core.lookup.Interpolator.<init>(Interpolator.java:95)
      at org.apache.logging.log4j.core.config.AbstractConfiguration.<init>(AbstractConfiguration.java:116)

      and

      Blueprint Extender: 3 WARN JMX runtime input lookup class is not available because this JRE does not support JMX. JMX lookups will not be available, continuing configuration. java.lang.ClassNotFoundException: org.apache.logging.log4j.core.lookup.JmxRuntimeInputArgumentsLookup
      (Stacktrace like above)

      As local fix I added 'DynamicImport-Package: *' to the MANIFEST.MF.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rakus Ralf
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: