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

Using slf4j-api-2.0.0-alpha1.jar not possible in OSGi

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.0.0-alpha1
    • Core API
    • None
    • OSGi

    Description

      The ServiceLoader pieces of the META-INF/manifest.mf are missing for OSGi.

      It seems to be missing the Require-Capability entry to define ServiceLoader usage.

      Require-Capability=osgi.serviceloader;filter:="osgi.serviceloader=org.slf4j.spi.SLF4JServiceProvider)",osgi.extender;filter:="(osgi.extender=osgi.serviceloader.processor)"

      For example, here's the one out of javax.websocket

      Require-Capability: osgi.extender;filter:="(osgi.extender=osgi.servicelo
       ader.processor)",osgi.serviceloader;filter:="(osgi.serviceloader=javax.
       websocket.ContainerProvider)";resolution:=optional;cardinality:=multipl
       e,osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=11))"
      

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            joakime Joakim Erdfelt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: