Hey Rodolfo,

Fresh karaf 2.4.1 -> Here is what I did and it's going smooth without a problem.

- features:addurl mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features
- features:install cxf-dosgi-core
- features:install cxf-dosgi-discovery-distributed

Regards,
Morgan

On 2016-02-18 17:40, Rodolfo Alcazar Portillo wrote:
... in case anyone wants to see the behavior with newer versions...

karaf@root> features:chooseurl cxf-dosgi 1.7.0
Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features

karaf@root> features:install cxf-dosgi-discovery-distributed
Error executing command: Can't install feature cxf-dosgi-discovery-distributed/0.0.0: Could not start bundle mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.7.0 in feature(s) cxf-dosgi-core-1.7.0: Unresolved constraint in bundle cxf-dosgi-ri-dsw-cxf [317]: Unable to resolve 317.0: missing requirement [317.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.cxf)(version>=3.1.0)(!(version>=4.0.0)))

(ok, I assume it requires CXF>=3.1.0)

karaf@root> features:chooseurl cxf 3.1.0
Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/3.1.0/xml/features

karaf@root> features:install cxf/3.1.0
Error executing command: Can't install feature cxf/3.1.0:
Could not start bundle mvn:org.apache.wss4j/wss4j-ws-security-policy-stax/2.1.0 in feature(s) wss4j-2.1.0: Uses constraint violation. Unable to resolve bundle revision org.apache.wss4j.wss4j-ws-security-stax [299.0] because it is exposed to package 'org.joda.time' from bundle revisions joda-time [294.0] and org.apache.servicemix.bundles.joda-time [8.0] via two dependency chains.
Chain 1:
  org.apache.wss4j.wss4j-ws-security-stax [299.0]
import: (&(osgi.wiring.package=org.joda.time)(version>=2.7.0)(!(version>=3.0.0)))
     |
    export: osgi.wiring.package=org.joda.time
  joda-time [294.0]
Chain 2:
  org.apache.wss4j.wss4j-ws-security-stax [299.0]
    import: (osgi.wiring.package=org.opensaml.xmlsec.signature.support)
     |
export: osgi.wiring.package=org.opensaml.xmlsec.signature.support; uses:=org.joda.time
  org.apache.servicemix.bundles.opensaml [293.0]
import: (&(osgi.wiring.package=org.joda.time)(version>=2.2.0)(!(version>=3.0.0)))
     |
    export: osgi.wiring.package=org.joda.time
  org.apache.servicemix.bundles.joda-time [8.0]

What!?

Thanks, Rodolfo.

2016-02-18 17:30 GMT+01:00 Rodolfo Alcazar Portillo <[email protected] <mailto:[email protected]>>:

    Hi, my first time on the list :)

    I'm using karaf 2.4.1 (can't change version) and want to test
    dosgi. I'm following some tutorials, mainly lessons 4 & 8 in
    http://www.liquid-reality.de/, but can't make dosgi startup in
    karaf. I'm stucked here (the versions shown below give the less
    errors, others give thougher errors):

    karaf@root> features:chooseurl cxf-dosgi 1.4.0
    Adding feature url
    mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4.0/xml/features

    (good!)

    karaf@root> features:install cxf-dosgi-discovery-distributed
    Error executing command: Can't install feature
    cxf-dosgi-discovery-distributed/0.0.0:
    Could not start bundle
    mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in feature(s)
    cxf-dosgi-core-1.4.0: Unresolved constraint in bundle
    cxf-dosgi-ri-dsw-cxf [216]: Unable to resolve 216.0: missing
    requirement [216.0] osgi.wiring.package;
    (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))

    (oops, ok, let's provide cxf)...

    karaf@root> features:chooseurl cxf 2.7.4
    Adding feature url
    mvn:org.apache.cxf.karaf/apache-cxf/2.7.4/xml/features

    (ok)

    karaf@root> features:install cxf

    (ok, and here we go again:)

    karaf@root> features:install cxf-dosgi-discovery-distributed
    Error executing command: Can't install feature
    cxf-dosgi-discovery-distributed/0.0.0:
    Could not start bundle
    mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.4.0 in feature(s)
    cxf-dosgi-core-1.4.0: Unresolved constraint in bundle
    cxf-dosgi-ri-dsw-cxf [223]: Unable to resolve 223.0: missing
    requirement [223.0] osgi.wiring.package;
    (&(osgi.wiring.package=org.apache.cxf)(version>=2.7.0)(!(version>=3.0.0)))

    karaf@root> list|grep cxf
    [ 197] [Active     ] [Created     ] [       ] [ 50]
    camel-cxf-transport (2.14.1)
    [ 198] [Active     ] [Created     ] [       ] [ 50] camel-cxf (2.14.1)

    Why? I'm on the right version, providing the right package! As
    said, with other versions I get other errors, mainly if I use cxf
    3.1.0 or higher : google for "joda-time via two dependency chains"

    Any help on this will be welcome, thanks in advance.

    Greets. R.



Reply via email to