You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by nino martinez wael <ni...@gmail.com> on 2018/03/02 06:43:37 UTC

Re: cxf + swagger (DOSGI 2.2.0 + cxf 3.2.1)

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 <
nino.martinez.wael@gmail.com> 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 <coheigea@apache.org
> > wrote:
>
>> Do you have exact steps to reproduce the problem?
>>
>> Colm.
>>
>> On Wed, Feb 21, 2018 at 6:06 AM, nino martinez wael <
>> nino.martinez.wael@gmail.com> 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
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: cxf + swagger (DOSGI 2.2.0 + cxf 3.2.1)

Posted by nino martinez wael <ni...@gmail.com>.
clean karaf 4.2 m2 with only CXF 3.2.3-SNAPSHOT

D:\apache-karaf-4.2.0.M2\bin>karaf
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (4.2.0.M2)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()> feature:repo-add cxf 3.2.3-SNAPSHOT
Adding feature url
mvn:org.apache.cxf.karaf/apache-cxf/3.2.3-SNAPSHOT/xml/features
karaf@root()> feature:install cxf-rs-description-swagger2
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: 127
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 c
nstraint violation. Unable to resolve resource
org.apache.cxf.samples.jax_rs_description_swagger2_osgi
[org.apache.cxf.samples.jax_rs_description_swa
ger2_osgi [127](R 127.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 [127](R 127.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 [127](R 127.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
[127](R 127.0)] osgi.wiring.package;
(&(osgi.wiring.package=io.swagger.jaxrs.config)(version>=1.5.0)(!(version>=2.0.0)))]
karaf@root()>



























On Fri, Mar 2, 2018 at 12:04 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> Karaf features namespace 1.4 is supported by Karaf 4.x, not 3.x.
>
> Regards
> JB
>
> On 03/02/2018 12:02 PM, nino martinez wael wrote:
> > on a clean 3.0.8:
> >
> > Microsoft Windows [Version 6.1.7601]
> > Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
> >
> > D:\apache-karaf-3.0.8\bin>karaf
> >         __ __                  ____
> >        / //_/____ __________ _/ __/
> >       / ,<  / __ `/ ___/ __ `/ /_
> >      / /| |/ /_/ / /  / /_/ / __/
> >     /_/ |_|\__,_/_/   \__,_/_/
> >
> >   Apache Karaf (3.0.8)
> >
> > Hit '<tab>' for a list of available commands
> > and '[cmd] --help' for help on a specific command.
> > Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
> >
> > karaf@root()> feature:install cxf-rs-description-swagger2
> > Error executing command: Unrecognized root element: {
> > http://karaf.apache.org/xmlns/features/v1.4.0}features
> > karaf@root()>
> >
> >
> > I will also get a clean karaf 4.2.0 m2
> >
> > On Fri, Mar 2, 2018 at 11:44 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>
> > wrote:
> >
> >> 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é <jb...@nanthrax.net>
> >>> 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 <
> >>>>> nino.martinez.wael@gmail.com> 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 <
> >>>> coheigea@apache.org
> >>>>>>> wrote:
> >>>>>>
> >>>>>>> Do you have exact steps to reproduce the problem?
> >>>>>>>
> >>>>>>> Colm.
> >>>>>>>
> >>>>>>> On Wed, Feb 21, 2018 at 6:06 AM, nino martinez wael <
> >>>>>>> nino.martinez.wael@gmail.com> 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é
> >>>> jbonofre@apache.org
> >>>> http://blog.nanthrax.net
> >>>> Talend - http://www.talend.com
> >>>>
> >>>
> >>>
> >>>
> >>
> >> --
> >> Jean-Baptiste Onofré
> >> jbonofre@apache.org
> >> http://blog.nanthrax.net
> >> Talend - http://www.talend.com
> >>
> >
> >
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: cxf + swagger (DOSGI 2.2.0 + cxf 3.2.1)

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Karaf features namespace 1.4 is supported by Karaf 4.x, not 3.x.

Regards
JB

On 03/02/2018 12:02 PM, nino martinez wael wrote:
> on a clean 3.0.8:
> 
> Microsoft Windows [Version 6.1.7601]
> Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
> 
> D:\apache-karaf-3.0.8\bin>karaf
>         __ __                  ____
>        / //_/____ __________ _/ __/
>       / ,<  / __ `/ ___/ __ `/ /_
>      / /| |/ /_/ / /  / /_/ / __/
>     /_/ |_|\__,_/_/   \__,_/_/
> 
>   Apache Karaf (3.0.8)
> 
> Hit '<tab>' for a list of available commands
> and '[cmd] --help' for help on a specific command.
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
> 
> karaf@root()> feature:install cxf-rs-description-swagger2
> Error executing command: Unrecognized root element: {
> http://karaf.apache.org/xmlns/features/v1.4.0}features
> karaf@root()>
> 
> 
> I will also get a clean karaf 4.2.0 m2
> 
> On Fri, Mar 2, 2018 at 11:44 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>
> wrote:
> 
>> 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é <jb...@nanthrax.net>
>>> 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 <
>>>>> nino.martinez.wael@gmail.com> 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 <
>>>> coheigea@apache.org
>>>>>>> wrote:
>>>>>>
>>>>>>> Do you have exact steps to reproduce the problem?
>>>>>>>
>>>>>>> Colm.
>>>>>>>
>>>>>>> On Wed, Feb 21, 2018 at 6:06 AM, nino martinez wael <
>>>>>>> nino.martinez.wael@gmail.com> 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é
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>>
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
> 
> 
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: cxf + swagger (DOSGI 2.2.0 + cxf 3.2.1)

Posted by nino martinez wael <ni...@gmail.com>.
on a clean 3.0.8:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

D:\apache-karaf-3.0.8\bin>karaf
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.8)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()> feature:install cxf-rs-description-swagger2
Error executing command: Unrecognized root element: {
http://karaf.apache.org/xmlns/features/v1.4.0}features
karaf@root()>


I will also get a clean karaf 4.2.0 m2

On Fri, Mar 2, 2018 at 11:44 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> 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é <jb...@nanthrax.net>
> > 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 <
> >>> nino.martinez.wael@gmail.com> 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 <
> >> coheigea@apache.org
> >>>>> wrote:
> >>>>
> >>>>> Do you have exact steps to reproduce the problem?
> >>>>>
> >>>>> Colm.
> >>>>>
> >>>>> On Wed, Feb 21, 2018 at 6:06 AM, nino martinez wael <
> >>>>> nino.martinez.wael@gmail.com> 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é
> >> jbonofre@apache.org
> >> http://blog.nanthrax.net
> >> Talend - http://www.talend.com
> >>
> >
> >
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: cxf + swagger (DOSGI 2.2.0 + cxf 3.2.1)

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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é <jb...@nanthrax.net>
> 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 <
>>> nino.martinez.wael@gmail.com> 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 <
>> coheigea@apache.org
>>>>> wrote:
>>>>
>>>>> Do you have exact steps to reproduce the problem?
>>>>>
>>>>> Colm.
>>>>>
>>>>> On Wed, Feb 21, 2018 at 6:06 AM, nino martinez wael <
>>>>> nino.martinez.wael@gmail.com> 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é
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
> 
> 
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: cxf + swagger (DOSGI 2.2.0 + cxf 3.2.1)

Posted by nino martinez wael <ni...@gmail.com>.
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é <jb...@nanthrax.net>
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 <
> > nino.martinez.wael@gmail.com> 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 <
> coheigea@apache.org
> >>> wrote:
> >>
> >>> Do you have exact steps to reproduce the problem?
> >>>
> >>> Colm.
> >>>
> >>> On Wed, Feb 21, 2018 at 6:06 AM, nino martinez wael <
> >>> nino.martinez.wael@gmail.com> 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é
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: cxf + swagger (DOSGI 2.2.0 + cxf 3.2.1)

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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 <
> nino.martinez.wael@gmail.com> 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 <coheigea@apache.org
>>> wrote:
>>
>>> Do you have exact steps to reproduce the problem?
>>>
>>> Colm.
>>>
>>> On Wed, Feb 21, 2018 at 6:06 AM, nino martinez wael <
>>> nino.martinez.wael@gmail.com> 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é
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: cxf + swagger (DOSGI 2.2.0 + cxf 3.2.1)

Posted by Francois Papon <fr...@openobject.fr>.
Hi,

Since Karaf 4.2.x the blueprint feature is not install automatically,
you have to install it before.

Francois


Le 02/03/2018 à 10:43, nino martinez wael a écrit :
> 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 <
> nino.martinez.wael@gmail.com> 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 <coheigea@apache.org
>>> wrote:
>>> Do you have exact steps to reproduce the problem?
>>>
>>> Colm.
>>>
>>> On Wed, Feb 21, 2018 at 6:06 AM, nino martinez wael <
>>> nino.martinez.wael@gmail.com> 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
>>
>
>