You probably try to install the example bundle manually. ServiceMix defines a feature which contains all necessary dependencies for this sample
karaf@root> features:info examples-cxf-jaxrs Description of examples-cxf-jaxrs 5.4.1-SNAPSHOT feature ---------------------------------------------------------------- Feature has no configuration Feature has no configuration files Feature depends on: cxf 3.0.2 Feature contains followed bundles: mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/3.2.11.RELEASE_1 mvn:commons-codec/commons-codec/1.9 mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient/3.1_7 mvn:org.apache.servicemix.examples/cxf-jaxrs/5.4.1-SNAPSHOT Feature has no conditionals. You can simple install it using karaf@root> features:install examples-cxf-jaxrs If you want to install bundles manually you need to install all dependencies as well (if not installed yet) osgi:install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/3.2.11.RELEASE_1 osgi:install -s mvn:commons-codec/commons-codec/1.9 osgi:install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient/3.1_7 osgi:install -s mvn:org.apache.servicemix.examples/cxf-jaxrs/5.4.1-SNAPSHOT In the last command use the version from your ServiceMix Regards Krzysztof On 18.03.2015 17:04, Krzysztof Sobkowiak wrote: > Hi > > Which ServiceMix version do you use? > > Regards > Krzysztof > > On 17.03.2015 02:28, zsm605 wrote: >> I building the examples\cxf\cxf-jaxrs Bundle, when i deploy it and start it, >> it always throw exception that says: >> <http://servicemix.396122.n5.nabble.com/file/n5722361/1.bmp> >> is't missing the 'org.apache.commons.httpclient' jar ,how can i import it >> to the servicemix environment? >> >> >> >> -- >> View this message in context: >> http://servicemix.396122.n5.nabble.com/how-to-import-reference-jar-into-servicemix-tp5722361.html >> Sent from the ServiceMix - User mailing list archive at Nabble.com. -- Krzysztof Sobkowiak JEE & OSS Architect Senior Solution Architect @ Capgemini SSC <http://www.pl.capgemini-sdm.com/en> Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC
