cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akitoshi Yoshida (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-7045) Update sample description_swagger2_osgi README.txt
Date Tue, 13 Sep 2016 22:38:20 GMT

    [ https://issues.apache.org/jira/browse/CXF-7045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15488673#comment-15488673
] 

Akitoshi Yoshida commented on CXF-7045:
---------------------------------------

Hi Andriy,
well, I verified the original feature.xml 
https://github.com/apache/cxf/commit/af7de1d82d77e3653b72ee83b4aa3f91e1a1d039

and those jackson bundles were there and those entries are still there in the current feature.xml.
https://github.com/apache/cxf/blob/master/osgi/karaf/features/src/main/resources/features.xml#L236-L254

so, you don't need to install them extra when using cxf's swagger feature.

The only occasion this can go wrong is that since we are pulling the jackson version from
swagger transitively and write them into the cxf-description-swagger's manifest. So, if someone
changes cxf parent's jackson version while keeping the swagger version, the jackson version
referenced in cxf's feature.xml and what is actually referenced in cf-description-swagger's
manifest might diverge too far so that the wiring can fail. And I suspect this was what had
happened in your situation.

regards, aki



> Update sample description_swagger2_osgi README.txt
> --------------------------------------------------
>
>                 Key: CXF-7045
>                 URL: https://issues.apache.org/jira/browse/CXF-7045
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>            Reporter: John Poth
>            Assignee: Freeman Fang
>            Priority: Minor
>             Fix For: 3.2.0, 3.1.8
>
>
> Update jackson version. Currently getting the error:
> {code}
> Caused by: org.osgi.framework.BundleException: Unable to resolve org.apache.cxf.samples.jax_rs_description_swagger2_osgi
[146](R 146.0): missing requirement [org.apache.cxf.samples.jax_rs_description_swagger2_osgi
[146](R 146.0)] osgi.wiring.package; (&(osgi.wiring.package=com.fasterxml.jackson.jaxrs.json)(version>=2.6.0)(!(version>=3.0.0)))
Unresolved requirements: [[org.apache.cxf.samples.jax_rs_description_swagger2_osgi [146](R
146.0)] osgi.wiring.package; (&(osgi.wiring.package=com.fasterxml.jackson.jaxrs.json)(version>=2.6.0)(!(version>=3.0.0)))]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message