[
https://issues.apache.org/jira/browse/CXF-7993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Freeman Fang reassigned CXF-7993:
---------------------------------
Assignee: Freeman Fang
> cxf-xjc-runtime bundle couldn't be installed onto OSGi container when JDK 1.8
> -----------------------------------------------------------------------------
>
> Key: CXF-7993
> URL: https://issues.apache.org/jira/browse/CXF-7993
> Project: CXF
> Issue Type: Bug
> Components: OSGi
> Affects Versions: 3.3.1
> Environment: JDK 1.8
> Reporter: Xilai Dai
> Assignee: Freeman Fang
> Priority: Major
>
> With 3.3.x, JAXB 2.3 libs are introduced to support JDK 9/10/11.
> The cxf-xjc-runtime bundle is built with Import-Package:
> javax.xml.bind;version="[2.3,3)", it will be failed to installed into Karaf
> container on JDK 1.8. As there is JAXB 2.2 exposed with JDK 1.8.
> {code}
> Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to
> resolve org.apache.cxf.xjc-utils.cxf-xjc-runtime/3.3.0: missing requirement
> [org.apache.cxf.xjc-utils.cxf-xjc-runtime/3.3.0] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))"
> at
> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
> ~[?:?]
> at
> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
> ~[?:?]
> at
> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
> ~[?:?]
> ... 12 more
> {code}
> We better fix the MANIFEST by Import-Package: javax.xml.bind;version="[2,3)",
> to make it support JDK 1.8/9/10/11.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)