[ https://issues.apache.org/jira/browse/CXF-7045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15493952#comment-15493952 ]
Andriy Redko commented on CXF-7045: ----------------------------------- Hey Sergey, No problem. So here is the thing (Swagger 2 OSGi sample): - yes, you see the usage of JAX-RS provider in the sample (which is part of com.fasterxml.jackson.jaxrs artifacts) - yes, cxf-rt-rs-service-description-swagger lists two com.fasterxml.jackson.jaxrs artifacts in the feature.xml definition - however, they won't be installed by Karaf, because our Swagger 2 integration does not depend on any class from com.fasterxml.jackson.jaxrs artifacts (the respective bundles are marked with dependency="true" attribute) - but our Swagger 2 OSGi sample uses JacksonJsonProvider so when it is being installed into Karaf container, two com.fasterxml.jackson.jaxrs have to be installed manually as well As Aki mention, previous version of Swagger had a dependency to com.fasterxml.jackson.jaxrs and as such, Karaf installed them as part of cxf-rt-rs-service-description-swagger feature. In this case, our samples just work, nothing to be done. Now, the dependency graph has changed and com.fasterxml.jackson.jaxrs are resolved as a dependencies, so when we ask user to install sample application bundle, com.fasterxml.jackson.jaxrs bundles are not present and have to be installed manually :( Hope I included all the pieces ... :-) Please let me know if something is still not clear. Thanks! Best Regards, Andriy Redko > 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)