Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-574

slf4j OSGi metadata missing "uses" clauses

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.6
    • None
    • None
    • None
    • Running SLF4J in OSGi environment

    Description

      When using SLF4J in an OSGi environment, the wiring can go wrong because SLF4J does not include uses clauses in the MANIFEST.MF.

      This leads to errors like:

       loader constraint violation:
      when resolving method 'org.slf4j.ILoggerFactory org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()'
      the class loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @3a07fd19 of the current class,
      org/slf4j/LoggerFactory, and
      the class loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @773560cf for the method's defining class,
      org/slf4j/impl/StaticLoggerBinder,
      have different Class objects for the type org/slf4j/ILoggerFactory used in the signature
      (org.slf4j.LoggerFactory is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @3a07fd19,
      parent loader 'platform';
      org.slf4j.impl.StaticLoggerBinder is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @773560cf,
      parent loader 'platform')
       

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            jonahgraham Jonah Graham
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: