[ 
https://issues.apache.org/jira/browse/CXFXJC-32?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Freeman Fang resolved CXFXJC-32.
--------------------------------
    Resolution: Fixed

> cxf-xjc-runtime bundle couldn't be installed onto OSGi container when JDK 1.8
> -----------------------------------------------------------------------------
>
>                 Key: CXFXJC-32
>                 URL: https://issues.apache.org/jira/browse/CXFXJC-32
>             Project: CXF XJC Utils
>          Issue Type: Bug
>          Components: Maven Plugin
>         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)

Reply via email to