It seems you are mixing swagger 1 and 2 features, can you try a refresh or from a clean install ?
Regards JB On 03/02/2018 11:40 AM, nino martinez wael wrote: > I get this: > > karaf@root()> feature:install aries-blueprint > karaf@root()> install -s > mvn:org.apache.cxf.samples/jax_rs_description_swagger2_osgi/3.2.3-SNAPSHOT > Bundle ID: 116 > Error executing command: Error installing bundles: > Unable to start bundle > mvn:org.apache.cxf.samples/jax_rs_description_swagger2_osgi/3.2.3-SNAPSHOT: > org.osgi.framework.BundleException: Uses co > nstraint violation. Unable to resolve resource > org.apache.cxf.samples.jax_rs_description_swagger2_osgi > [org.apache.cxf.samples.jax_rs_description_swag > ger2_osgi [116](R 116.0)] because it is exposed to package > 'javax.annotation' from resources javax.annotation-api > [javax.annotation-api [54](R 54.0)] > and org.apache.felix.framework [org.apache.felix.framework [0](R 0)] via > two dependency chains. > > Chain 1: > org.apache.cxf.samples.jax_rs_description_swagger2_osgi > [org.apache.cxf.samples.jax_rs_description_swagger2_osgi [116](R 116.0)] > import: > (&(osgi.wiring.package=javax.annotation)(version>=1.2.0)(!(version>=2.0.0))) > | > export: osgi.wiring.package: javax.annotation > javax.annotation-api [javax.annotation-api [54](R 54.0)] > > Chain 2: > org.apache.cxf.samples.jax_rs_description_swagger2_osgi > [org.apache.cxf.samples.jax_rs_description_swagger2_osgi [116](R 116.0)] > import: > (&(osgi.wiring.package=io.swagger.jaxrs.config)(version>=1.5.0)(!(version>=2.0.0))) > | > export: osgi.wiring.package=io.swagger.jaxrs.config; > uses:=org.reflections.util > io.swagger.jaxrs [io.swagger.jaxrs [51](R 51.0)] > import: > (&(osgi.wiring.package=org.reflections.util)(version>=0.9.0)(!(version>=1.0.0))) > | > export: osgi.wiring.package=org.reflections.util; uses:=javax.annotation > org.apache.servicemix.bundles.reflections > [org.apache.servicemix.bundles.reflections [155](R 155.0)] > import: (osgi.wiring.package=javax.annotation) > | > export: osgi.wiring.package: javax.annotation > org.apache.felix.framework [org.apache.felix.framework [0](R 0)] > Unresolved requirements: > [[org.apache.cxf.samples.jax_rs_description_swagger2_osgi > [116](R 116.0)] osgi.wiring.package; > (&(osgi.wiring.package=io.swagger.jaxrs.config)(version>=1.5.0)(!(version>=2.0.0)))] > karaf@root()> > > > Will try a karaf 3.0.x > > On Fri, Mar 2, 2018 at 8:57 AM, Jean-Baptiste Onofré <[email protected]> > wrote: > >> Hi Nino, >> >> you have to install aries-blueprint feature. >> >> Actually, CXF feature repo should define this in order to have a smooth >> installation. >> >> I also proposed to install jackson bundles with cxfrs. I will prepare a PR >> about >> that. >> >> Regards >> JB >> >> On 03/02/2018 07:43 AM, nino martinez wael wrote: >>> Okay using latest karaf 4.2 m2 I get this: >>> >>> karaf@root()> feature:install cxf >>> Error executing command: No matching features for cxf/0 >>> karaf@root()> feature:repo-add cxf 3.2.2 >>> Adding feature url mvn:org.apache.cxf.karaf/ >> apache-cxf/3.2.2/xml/features >>> karaf@root()> feature:install cxf-rs-description-swagger2 >>> karaf@root()> install -s >>> mvn:org.apache.cxf.samples/jax_rs_description_swagger2_ >> osgi/3.2.3-SNAPSHOT >>> Bundle ID: 116 >>> Error executing command: Error installing bundles: >>> Unable to start bundle >>> mvn:org.apache.cxf.samples/jax_rs_description_swagger2_ >> osgi/3.2.3-SNAPSHOT: >>> org.osgi.framework.BundleException: Unable >>> to resolve org.apache.cxf.samples.jax_rs_description_swagger2_osgi >> [116](R >>> 116.0): missing requirement [org.apache.cxf.samples.jax_ >> rs_description_swag >>> ger2_osgi [116](R 116.0)] osgi.wiring.package; >>> (&(osgi.wiring.package=org.osgi.service.blueprint)( >> version>=1.0.0)(!(version>=2.0.0))) >>> Unresolved requi >>> rements: [[org.apache.cxf.samples.jax_rs_description_swagger2_osgi >> [116](R >>> 116.0)] osgi.wiring.package; (&(osgi.wiring.package=org. >> osgi.service.bluepr >>> int)(version>=1.0.0)(!(version>=2.0.0)))] >>> karaf@root()> feature:install scr >>> karaf@root()> install -s >>> mvn:org.apache.cxf.samples/jax_rs_description_swagger2_ >> osgi/3.2.3-SNAPSHOT >>> Bundle ID: 116 >>> Error executing command: Error installing bundles: >>> Unable to start bundle >>> mvn:org.apache.cxf.samples/jax_rs_description_swagger2_ >> osgi/3.2.3-SNAPSHOT: >>> org.osgi.framework.BundleException: Unable >>> to resolve org.apache.cxf.samples.jax_rs_description_swagger2_osgi >> [116](R >>> 116.0): missing requirement [org.apache.cxf.samples.jax_ >> rs_description_swag >>> ger2_osgi [116](R 116.0)] osgi.wiring.package; >>> (&(osgi.wiring.package=org.osgi.service.blueprint)( >> version>=1.0.0)(!(version>=2.0.0))) >>> Unresolved requi >>> rements: [[org.apache.cxf.samples.jax_rs_description_swagger2_osgi >> [116](R >>> 116.0)] osgi.wiring.package; (&(osgi.wiring.package=org. >> osgi.service.bluepr >>> int)(version>=1.0.0)(!(version>=2.0.0)))] >>> karaf@root()> feature:install blueprint-web >>> karaf@root()> install -s >>> mvn:org.apache.cxf.samples/jax_rs_description_swagger2_ >> osgi/3.2.3-SNAPSHOT >>> Bundle ID: 116 >>> Error executing command: Error installing bundles: >>> Unable to start bundle >>> mvn:org.apache.cxf.samples/jax_rs_description_swagger2_ >> osgi/3.2.3-SNAPSHOT: >>> org.osgi.framework.BundleException: Uses co >>> nstraint violation. Unable to resolve resource >>> org.apache.cxf.samples.jax_rs_description_swagger2_osgi >>> [org.apache.cxf.samples.jax_rs_description_swag >>> ger2_osgi [116](R 116.0)] because it is exposed to package >>> 'javax.annotation' from resources javax.annotation-api >>> [javax.annotation-api [54](R 54.0)] >>> and org.apache.felix.framework [org.apache.felix.framework [0](R 0)] via >>> two dependency chains. >>> >>> Chain 1: >>> org.apache.cxf.samples.jax_rs_description_swagger2_osgi >>> [org.apache.cxf.samples.jax_rs_description_swagger2_osgi [116](R 116.0)] >>> import: >>> (&(osgi.wiring.package=javax.annotation)(version>=1.2.0)(!( >> version>=2.0.0))) >>> | >>> export: osgi.wiring.package: javax.annotation >>> javax.annotation-api [javax.annotation-api [54](R 54.0)] >>> >>> Chain 2: >>> org.apache.cxf.samples.jax_rs_description_swagger2_osgi >>> [org.apache.cxf.samples.jax_rs_description_swagger2_osgi [116](R 116.0)] >>> import: >>> (&(osgi.wiring.package=io.swagger.jaxrs.config)(version> >> =1.5.0)(!(version>=2.0.0))) >>> | >>> export: osgi.wiring.package=io.swagger.jaxrs.config; >>> uses:=org.reflections.util >>> io.swagger.jaxrs [io.swagger.jaxrs [51](R 51.0)] >>> import: >>> (&(osgi.wiring.package=org.reflections.util)(version>=0. >> 9.0)(!(version>=1.0.0))) >>> | >>> export: osgi.wiring.package=org.reflections.util; >> uses:=javax.annotation >>> org.apache.servicemix.bundles.reflections >>> [org.apache.servicemix.bundles.reflections [81](R 81.0)] >>> import: (osgi.wiring.package=javax.annotation) >>> | >>> export: osgi.wiring.package: javax.annotation >>> org.apache.felix.framework [org.apache.felix.framework [0](R 0)] >>> Unresolved requirements: >>> [[org.apache.cxf.samples.jax_rs_description_swagger2_osgi >>> [116](R 116.0)] osgi.wiring.package; >>> (&(osgi.wiring.package=io.swagger.jaxrs.config)(version> >> =1.5.0)(!(version>=2.0.0)))] >>> karaf@root()> feature:install webconsole >>> karaf@root()> install -s >>> mvn:org.apache.cxf.samples/jax_rs_description_swagger2_ >> osgi/3.2.3-SNAPSHOT >>> >>> >>> I will try with the mentioned 3.x karaf in the samples and return with >>> status.. >>> >>> On Fri, Feb 23, 2018 at 9:06 AM, nino martinez wael < >>> [email protected]> wrote: >>> >>>> I havent tried it with the "official" examples.. >>>> >>>> I'll give it a go. >>>> >>>> On Wed, Feb 21, 2018 at 10:46 AM, Colm O hEigeartaigh < >> [email protected] >>>>> wrote: >>>> >>>>> Do you have exact steps to reproduce the problem? >>>>> >>>>> Colm. >>>>> >>>>> On Wed, Feb 21, 2018 at 6:06 AM, nino martinez wael < >>>>> [email protected]> wrote: >>>>> >>>>>> Hi I am using cxf plus the swagger intent.. And it is working in the >>>>> sense >>>>>> that the swager documents gets published. >>>>>> >>>>>> I noticed once and only once that on the CXF "overview" page where you >>>>>> normally can see the different endpoints that are registered there >> were >>>>>> also a link to the swagger documentation.. >>>>>> >>>>>> What's up with that, I wonder why it's not there consistently? >>>>>> >>>>>> -- >>>>>> Best regards / Med venlig hilsen >>>>>> Nino Martinez >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Colm O hEigeartaigh >>>>> >>>>> Talend Community Coder >>>>> http://coders.talend.com >>>>> >>>> >>>> >>>> >>>> -- >>>> Best regards / Med venlig hilsen >>>> Nino Martinez >>>> >>> >>> >>> >> >> -- >> Jean-Baptiste Onofré >> [email protected] >> http://blog.nanthrax.net >> Talend - http://www.talend.com >> > > > -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
