You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Karl Pauls (Jira)" <ji...@apache.org> on 2021/07/06 07:06:00 UTC
[jira] [Closed] (SLING-10460) Contenpackage Converter needs
osgi.resource and osgi.dto on the classpath
[ https://issues.apache.org/jira/browse/SLING-10460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karl Pauls closed SLING-10460.
------------------------------
> Contenpackage Converter needs osgi.resource and osgi.dto on the classpath
> -------------------------------------------------------------------------
>
> Key: SLING-10460
> URL: https://issues.apache.org/jira/browse/SLING-10460
> Project: Sling
> Issue Type: Bug
> Components: Content-Package to Feature Model Converter
> Affects Versions: Content-Package to Feature Model Converter 1.1.4
> Reporter: Karl Pauls
> Assignee: Karl Pauls
> Priority: Major
> Fix For: Content-Package to Feature Model Converter 1.1.6
>
>
> 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:
> {noformat}
> 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)
> {noformat}
> We need to add the osgi.dto and osgi.resource dependencies.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)