Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10460

Contenpackage Converter needs osgi.resource and osgi.dto on the classpath

    XMLWordPrintableJSON

Details

    Description

      SLING-10223 changed the dependency for osgi from osgi.core to osgi.framework - that one doesn't contain the org.osgi.

      {dto,resource}

      packages. Consequently, the converter now fails when it encounters them in manifests like in:

      java.lang.NoClassDefFoundError: org/osgi/resource/Capability
      	at org.apache.sling.feature.io.json.ManifestUtils.unmarshalDirective(ManifestUtils.java:45)
      	at org.apache.sling.feature.io.json.FeatureJSONReader.lambda$readRequirements$1(FeatureJSONReader.java:603)
      	at org.apache.sling.feature.io.json.FeatureJSONReader.lambda$rethrowBiConsumer$4(FeatureJSONReader.java:649)
      

      We need to add the osgi.dto and osgi.resource dependencies.

      Attachments

        Issue Links

          Activity

            People

              karlpauls Karl Pauls
              karlpauls Karl Pauls
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: