Not sure but could be that you need to install org.osgi.service.http.HttpService in your Karaf distro as well as it seems some dependency is missing.
On Tue, Oct 4, 2016 at 10:04 AM, michael.esmann [via Camel] < ml-node+s465427n5788341...@n5.nabble.com> wrote: > Hi > > I am trying to install Camel 2.17.3 features in Karaf 3.0.8. > > The problem can be reproduced this way: > > - Make a clean Karaf 3.0.8 installation > > - Start Karaf and install features: > feature:repo-add camel 2.17.3 > feature:install cxf > feature:install camel-http > > - Stop Karaf and start again. > > Now I get a very long errormessage as seen below. > > Can anybody help me here? > > Thanks, > Michael > > --------------------------------------------------------------------------------------- > > > karaf@root()> ERROR: Bundle org.ops4j.pax.web.pax-web-api [99] Error > starting mvn:org.ops4j.pax.web/pax-web-api/3.2.9 > (org.osgi.framework.BundleException: > Unresolved constraint in bundle org.ops4j.pax > .web.pax-web-api [99]: Unable to resolve 99.0: missing requirement [99.0] > osgi.wiring.package; (&(osgi.wiring.package=javax. > servlet)(version>=2.3.0)(!(version>=3.1.0)))) > org.osgi.framework.BundleException: Unresolved constraint in bundle > org.ops4j.pax.web.pax-web-api [99]: Unable to resolve 99.0: missing > requirement [99.0] osgi.wiring.package; (&(osgi.wiring.package=j > avax.servlet)(version>=2.3.0)(!(version>=3.1.0))) > at > org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974) > > at org.apache.felix.framework.Felix.startBundle(Felix.java:2037) > at > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291) > > at org.apache.felix.framework.FrameworkStartLevelImpl.run( > FrameworkStartLevelImpl.java:304) > at java.lang.Thread.run(Thread.java:744) > ERROR: Bundle org.ops4j.pax.web.pax-web-spi [100] Error starting > mvn:org.ops4j.pax.web/pax-web-spi/3.2.9 (org.osgi.framework.BundleException: > Unresolved constraint in bundle org.ops4j.pax.web.pax-web- > spi [100]: Unable to resolve 100.0: missing requirement [100.0] > osgi.wiring.package; > (&(osgi.wiring.package=org.ops4j.pax.web.service)(version>=3.2.9)) > [caused by: Unable to resolve 99.0: missing requ > irement [99.0] osgi.wiring.package; (&(osgi.wiring.package=javax. > servlet)(version>=2.3.0)(!(version>=3.1.0)))]) > org.osgi.framework.BundleException: Unresolved constraint in bundle > org.ops4j.pax.web.pax-web-spi [100]: Unable to resolve 100.0: missing > requirement [100.0] osgi.wiring.package; (&(osgi.wiring.packag > e=org.ops4j.pax.web.service)(version>=3.2.9)) [caused by: Unable to > resolve 99.0: missing requirement [99.0] osgi.wiring.package; > (&(osgi.wiring.package=javax.servlet)(version>=2.3.0)(!(version>=3.1.0 > )))] > at > org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974) > > at org.apache.felix.framework.Felix.startBundle(Felix.java:2037) > at > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291) > > at org.apache.felix.framework.FrameworkStartLevelImpl.run( > FrameworkStartLevelImpl.java:304) > at java.lang.Thread.run(Thread.java:744) > ERROR: Bundle org.ops4j.pax.web.pax-web-runtime [101] Error starting > mvn:org.ops4j.pax.web/pax-web-runtime/3.2.9 > (org.osgi.framework.BundleException: > Unresolved constraint in bundle org.ops4j.pax.web. > pax-web-runtime [101]: Unable to resolve 101.0: missing requirement > [101.0] osgi.wiring.package; (&(osgi.wiring.package=javax. > servlet)(version>=2.3.0)(!(version>=3.1.0)))) > org.osgi.framework.BundleException: Unresolved constraint in bundle > org.ops4j.pax.web.pax-web-runtime [101]: Unable to resolve 101.0: missing > requirement [101.0] osgi.wiring.package; (&(osgi.wiring.pa > ckage=javax.servlet)(version>=2.3.0)(!(version>=3.1.0))) > at > org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974) > > at org.apache.felix.framework.Felix.startBundle(Felix.java:2037) > at > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291) > > at org.apache.felix.framework.FrameworkStartLevelImpl.run( > FrameworkStartLevelImpl.java:304) > at java.lang.Thread.run(Thread.java:744) > ERROR: Bundle org.ops4j.pax.web.pax-web-jetty [102] Error starting > mvn:org.ops4j.pax.web/pax-web-jetty/3.2.9 (org.osgi.framework.BundleException: > Unresolved constraint in bundle org.ops4j.pax.web.pax- > web-jetty [102]: Unable to resolve 102.0: missing requirement [102.0] > osgi.wiring.package; > (&(osgi.wiring.package=org.ops4j.pax.web.service)(version>=3.2.9)) > [caused by: Unable to resolve 99.0: missin > g requirement [99.0] osgi.wiring.package; (&(osgi.wiring.package=javax. > servlet)(version>=2.3.0)(!(version>=3.1.0)))]) > org.osgi.framework.BundleException: Unresolved constraint in bundle > org.ops4j.pax.web.pax-web-jetty [102]: Unable to resolve 102.0: missing > requirement [102.0] osgi.wiring.package; (&(osgi.wiring.pack > age=org.ops4j.pax.web.service)(version>=3.2.9)) [caused by: Unable to > resolve 99.0: missing requirement [99.0] osgi.wiring.package; > (&(osgi.wiring.package=javax.servlet)(version>=2.3.0)(!(version>=3.1 > .0)))] > at > org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974) > > at org.apache.felix.framework.Felix.startBundle(Felix.java:2037) > at > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291) > > at org.apache.felix.framework.FrameworkStartLevelImpl.run( > FrameworkStartLevelImpl.java:304) > at java.lang.Thread.run(Thread.java:744) > ERROR: Bundle org.apache.karaf.http.core [103] Error starting > mvn:org.apache.karaf.http/org.apache.karaf.http.core/3.0.8 > (org.osgi.framework.BundleException: Unresolved constraint in bundle > org.apache > .karaf.http.core [103]: Unable to resolve 103.0: missing requirement > [103.0] osgi.wiring.package; (&(osgi.wiring.package=org. > ops4j.pax.web.service.spi)(version>=3.1.0)(!(version>=5.0.0))) [caused > by: > Unable to resolve 100.0: missing requirement [100.0] osgi.wiring.package; > (&(osgi.wiring.package=org.ops4j.pax.web.service)(version>=3.2.9)) > [caused by: Unable to resolve 99.0: missing requirement [99 > .0] osgi.wiring.package; (&(osgi.wiring.package=javax. > servlet)(version>=2.3.0)(!(version>=3.1.0)))]]) > org.osgi.framework.BundleException: Unresolved constraint in bundle > org.apache.karaf.http.core [103]: Unable to resolve 103.0: missing > requirement [103.0] osgi.wiring.package; (&(osgi.wiring.package=o > rg.ops4j.pax.web.service.spi)(version>=3.1.0)(!(version>=5.0.0))) [caused > by: Unable to resolve 100.0: missing requirement [100.0] > osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.pax.web.service > )(version>=3.2.9)) [caused by: Unable to resolve 99.0: missing requirement > [99.0] osgi.wiring.package; (&(osgi.wiring.package=javax. > servlet)(version>=2.3.0)(!(version>=3.1.0)))]] > at > org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974) > > at org.apache.felix.framework.Felix.startBundle(Felix.java:2037) > at > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291) > > at org.apache.felix.framework.FrameworkStartLevelImpl.run( > FrameworkStartLevelImpl.java:304) > at java.lang.Thread.run(Thread.java:744) > ERROR: Bundle org.apache.karaf.http.command [104] Error starting > mvn:org.apache.karaf.http/org.apache.karaf.http.command/3.0.8 > (org.osgi.framework.BundleException: Unresolved constraint in bundle org. > apache.karaf.http.command [104]: Unable to resolve 104.0: missing > requirement [104.0] osgi.wiring.package; (&(osgi.wiring.package=org. > apache.karaf.http.core)(version>=3.0.0)(!(version>=4.0.0))) [cause > d by: Unable to resolve 103.0: missing requirement [103.0] > osgi.wiring.package; (&(osgi.wiring.package=org. > ops4j.pax.web.service.spi)(version>=3.1.0)(!(version>=5.0.0))) [caused > by: Unable to resolve > 100.0: missing requirement [100.0] osgi.wiring.package; > (&(osgi.wiring.package=org.ops4j.pax.web.service)(version>=3.2.9)) > [caused by: Unable to resolve 99.0: missing requirement [99.0] > osgi.wiring.pa > ckage; > (&(osgi.wiring.package=javax.servlet)(version>=2.3.0)(!(version>=3.1.0)))]]]) > > org.osgi.framework.BundleException: Unresolved constraint in bundle > org.apache.karaf.http.command [104]: Unable to resolve 104.0: missing > requirement [104.0] osgi.wiring.package; (&(osgi.wiring.packag > e=org.apache.karaf.http.core)(version>=3.0.0)(!(version>=4.0.0))) [caused > by: Unable to resolve 103.0: missing requirement [103.0] > osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.pax.web.service > .spi)(version>=3.1.0)(!(version>=5.0.0))) [caused by: Unable to resolve > 100.0: missing requirement [100.0] osgi.wiring.package; > (&(osgi.wiring.package=org.ops4j.pax.web.service)(version>=3.2.9)) [caus > ed by: Unable to resolve 99.0: missing requirement [99.0] > osgi.wiring.package; (&(osgi.wiring.package=javax. > servlet)(version>=2.3.0)(!(version>=3.1.0)))]]] > at > org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974) > > at org.apache.felix.framework.Felix.startBundle(Felix.java:2037) > at > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291) > > at org.apache.felix.framework.FrameworkStartLevelImpl.run( > FrameworkStartLevelImpl.java:304) > at java.lang.Thread.run(Thread.java:744) > ERROR: Bundle org.apache.cxf.cxf-rt-transports-http [105] Error starting > mvn:org.apache.cxf/cxf-rt-transports-http/3.1.7 > (org.osgi.framework.BundleException: > Activator start error in bundle org.apache > .cxf.cxf-rt-transports-http [105].) > java.lang.NoClassDefFoundError: org/osgi/service/http/HttpService > at org.apache.cxf.transport.http.osgi.HTTPTransportActivator. > start(HTTPTransportActivator.java:63) > at org.apache.felix.framework.util.SecureAction. > startActivator(SecureAction.java:645) > at org.apache.felix.framework.Felix.activateBundle(Felix.java:2146) > > at org.apache.felix.framework.Felix.startBundle(Felix.java:2064) > at > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291) > > at org.apache.felix.framework.FrameworkStartLevelImpl.run( > FrameworkStartLevelImpl.java:304) > at java.lang.Thread.run(Thread.java:744) > Caused by: java.lang.ClassNotFoundException: org.osgi.service.http.HttpService > not found by org.apache.cxf.cxf-rt-transports-http [105] > at org.apache.felix.framework.BundleWiringImpl. > findClassOrResourceByDelegation(BundleWiringImpl.java:1532) > at > org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75) > > at org.apache.felix.framework.BundleWiringImpl$ > BundleClassLoader.loadClass(BundleWiringImpl.java:1955) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > ... 7 more > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://camel.465427.n5.nabble.com/Problem-with-Camel-2-17-3- > and-Karaf-3-0-8-tp5788341.html > To start a new topic under Camel - Users, email > ml-node+s465427n465428...@n5.nabble.com > To unsubscribe from Camel - Users, click here > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=> > . > NAML > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-Camel-2-17-3-and-Karaf-3-0-8-tp5788341p5788342.html Sent from the Camel - Users mailing list archive at Nabble.com.