I just tried the steps myself with a fresh clone of the Karaf Tutorial github repo.

I first did mvn clean install in the cxf/personservice dir.

Then downloaded and start karaf 3.0.1.

In the Karaf shell I did this:
 feature:repo-add cxf 2.7.4
 feature:install http cxf

install -s mvn:net.lr.tutorial.karaf.cxf.personservice/personservice-model/1.0-SNAPSHOT install -s mvn:net.lr.tutorial.karaf.cxf.personservice/personservice-server/1.0-SNAPSHOT install -s mvn:net.lr.tutorial.karaf.cxf.personservice/personservice-proxy/1.0-SNAPSHOT install -s mvn:net.lr.tutorial.karaf.cxf.personservice/personservice-webui/1.0-SNAPSHOT

Worked fine for me. I was then able to do the next steps and access the rest service as well as the personui.

If a bundle fails to install like you wrote, try to start it with start bundleid. Then karaf will tell you in detail which requirement of the bundle was not met. In my first attempt I did only feature:repo-add and forgot the feature:install. So the model bundle already did not install as it was missing the javax.ws.rs package.

Christian


Am 17.06.2014 21:22, schrieb lionceau:
Hi,

From
http://www.liquid-reality.de/display/liquid/2011/12/22/Karaf+Tutorial+Part+4+-+CXF+Services+in+OSGi
Using apache Karaf 3 I try to do :

I try to do :
karaf@root()> install -s
mvn:net.lr.tutorial.karaf.cxf.personservice/personservice-model/1.0-SNAPSHOT
Bundle IDs:
Error executing command: Error installing bundles:
         Unable to install bundle
mvn:net.lr.tutorial.karaf.cxf.personservice/personservice-model/1.0-SNAPSHOT
karaf@root()>

This tutorial is from 2011 , then now, in 2014 using Karaf 3 What's going on
? what's wrong ?What's the problem ?

Thank you,





--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-Tutorial-Part-4-CXF-Services-in-OSGi-tp4033586.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com

Reply via email to