I never tested CXF-DOSGi on karaf 2.4. You should try to 1.7.0 version on karaf 3 or 4. I just tested the install on karaf 3.0.3 and 4.0.3. It worked fine on both versions.
Normally you should not need to install CXF as the dosgi feature refers to it. If you install CXF by hand then better use the current version 3.1.5. The 3.1.0 version had some issues as far as I know. Christian 2016-02-18 17:30 GMT+01:00 Rodolfo Alcazar Portillo < [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. > > -- -- Christian Schneider http://www.liquid-reality.de <https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de> Open Source Architect http://www.talend.com <https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com>
