[
https://issues.apache.org/jira/browse/SLING-9624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17500702#comment-17500702
]
Konrad Windszus commented on SLING-9624:
----------------------------------------
When removing the sling specific "org.osgi.framework.system.packages" property
starting fails with
{code}
[ERROR] [bundle-packages]
org.apache.servicemix.specs:org.apache.servicemix.specs.jaxb-api-2.3:2.3_3: is
importing package(s) Package javax.xml.stream;version=[1.0,2) in start level 1
but no bundle is exporting these for that start level in the required version
range.
{code}
Seems that the servicemix XML bundles assume versioning according to the
underlying standard, i.e. JAXP 1.x but Felix exports those packages by default
with the version of the detected Java runtime
(https://github.com/apache/felix-dev/blob/5becb8f971f904334eb3f32e7eaa9126186a2898/framework/src/main/resources/default.properties#L261-L293).
Maybe it is time to switch from servicemix to the bundles from Eclipse (still
under the old namespace javax.xml) which is licensed under BSD-3
(https://github.com/eclipse-ee4j/jaxb-api/blob/2.3.3/jaxb-api/pom.xml#L277).
> Get rid of custom "org.osgi.framework.system.packages"
> ------------------------------------------------------
>
> Key: SLING-9624
> URL: https://issues.apache.org/jira/browse/SLING-9624
> Project: Sling
> Issue Type: Improvement
> Components: Starter
> Reporter: Konrad Windszus
> Priority: Major
> Fix For: Starter 13
>
>
> Instead of using a Sling specific "org.osgi.framework.system.packages"
> property
> (https://github.com/apache/sling-org-apache-sling-starter/blob/5f44b7f6c6b75e4cfd5574fb701c3e7eca8405ef/src/main/provisioning/launchpad.txt#L26)
> we should just rely on the Felix default
> (https://github.com/apache/felix-dev/blob/master/framework/src/main/resources/default.properties)
> to not miss to export all relevant packages for the different JREs
> compare with
> https://lists.apache.org/thread.html/r0aa3c02c38b5026e24684a00de3c6c8506e166334e77892ac2ee0ab3%40%3Cdev.sling.apache.org%3E.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)