Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Cannot Reproduce
-
3.0.2
-
None
-
None
-
jdk 1.7.0_25
Description
I have karaf 3.0.2 up and running. I tried setting up rest services feature into the container. The following command is been run,
feature:repo-add cxf 2.7.5 - successfully added
feature:install cxf
The above command started installing the below components...
Installing feature http 3.0.2
Installing feature pax-http 3.1.2
Installing feature standard-condition-webconsole_0_0_0 3.0.2
Installing feature cxf 3.1.0-SNAPSHOT
Installing feature cxf-core 3.1.0-SNAPSHOT
Installing feature cxf-specs 3.1.0-SNAPSHOT
Installing feature cxf-jaxws 3.1.0-SNAPSHOT
Installing feature cxf-wsdl 3.1.0-SNAPSHOT
Installing feature cxf-databinding-jaxb 3.1.0-SNAPSHOT
Installing feature cxf-bindings-soap 3.1.0-SNAPSHOT
Installing feature cxf-http 3.1.0-SNAPSHOT
Installing feature cxf-jaxrs 3.1.0-SNAPSHOT
Installing feature cxf-databinding-aegis 3.1.0-SNAPSHOT
Installing feature cxf-databinding-xmlbeans 3.1.0-SNAPSHOT
Installing feature cxf-bindings-corba 3.1.0-SNAPSHOT
Installing feature cxf-bindings-coloc 3.1.0-SNAPSHOT
Installing feature cxf-bindings-object 3.1.0-SNAPSHOT
Installing feature cxf-transports-local 3.1.0-SNAPSHOT
Installing feature cxf-http-jetty 3.1.0-SNAPSHOT
Installing feature jetty 8.1.9.v20130131
Installing feature cxf-transports-jms 3.1.0-SNAPSHOT
Installing feature cxf-transports-udp 3.1.0-SNAPSHOT
Installing feature cxf-xjc-runtime 3.1.0-SNAPSHOT
Installing feature cxf-jaxb 3.1.0-SNAPSHOT
Installing feature cxf-ws-security 3.1.0-SNAPSHOT
Installing feature cxf-ws-policy 3.1.0-SNAPSHOT
Installing feature wss4j 2.0.3-SNAPSHOT
Installing feature cxf-ws-addr 3.1.0-SNAPSHOT
Installing feature cxf-ws-rm 3.1.0-SNAPSHOT
Installing feature cxf-ws-mex 3.1.0-SNAPSHOT
Installing feature cxf-javascript 3.1.0-SNAPSHOT
Installing feature cxf-frontend-javascript 3.1.0-SNAPSHOT
Installing feature cxf-features-clustering 3.1.0-SNAPSHOT
Installing feature standard-condition-webconsole_0_0_0 3.0.2
Adding the extensions from bundle org.apache.cxf.cxf-core (153) [org.apache.cxf.phase.PhaseManager, org.apache.cxf.workqueue.WorkQueueManager, org.apache.cxf.buslifecycle.BusLifeCycleManager, org.apache.cxf.endpoint.ServerRegistry, org.apache.cxf.endpoint.EndpointResolverRegistry, org.apache.cxf.headers.HeaderManager, org.apache.cxf.service.factory.FactoryBeanListenerManager, org.apache.cxf.endpoint.ServerLifeCycleManager, org.apache.cxf.endpoint.ClientLifeCycleManager, org.apache.cxf.resource.ResourceManager, org.apache.cxf.catalog.OASISCatalogManager]
And then, I got the error...
Removing the extensions for bundle 153
ERROR | l for user karaf | ShellUtil | 25 - org.apache.karaf.shell.console - 3.0.2 | Exception caught while executing command
java.lang.Exception: Could not start bundle mvn:org.apache.cxf/cxf-core/3.1.0-SNAPSHOT in feature(s) cxf-core-3.1.0-SNAPSHOT: Activator start error in bundle org.apache.cxf.cxf-core [153].
at org.apache.karaf.features.internal.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:480)
at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:435)
at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:375)
at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:364)
at Proxy1a038244_414b_4a92_8f4b_e01546b1a943.installFeature(Unknown Source)
at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:67)
at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:38)
at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)[25:org.apache.karaf.shell.console:3.0.2]
at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[25:org.apache.karaf.shell.console:3.0.2]
at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[25:org.apache.karaf.shell.console:3.0.2]
at Proxy6e396dec_6692_4a5f_98b7_f4faee7e8c28.execute(Unknown Source)[:]
at Proxy6e396dec_6692_4a5f_98b7_f4faee7e8c28.execute(Unknown Source)[:]
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[25:org.apache.karaf.shell.console:3.0.2]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[25:org.apache.karaf.shell.console:3.0.2]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[25:org.apache.karaf.shell.console:3.0.2]
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[25:org.apache.karaf.shell.console:3.0.2]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[25:org.apache.karaf.shell.console:3.0.2]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[25:org.apache.karaf.shell.console:3.0.2]
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:203)
at org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1$1.run(LocalConsoleManager.java:115)
at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_25]
at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)[26:org.apache.karaf.jaas.modules:3.0.2]
at org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1.run(LocalConsoleManager.java:108)[25:org.apache.karaf.shell.console:3.0.2]
Caused by: org.osgi.framework.BundleException: Activator start error in bundle org.apache.cxf.cxf-core [153].
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2196)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2064)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
at org.apache.karaf.features.internal.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:477)
... 23 more
Caused by: java.lang.NoClassDefFoundError: org/apache/cxf/bus/blueprint/BlueprintNameSpaceHandlerFactory
at java.lang.Class.getDeclaredConstructors0(Native Method)[:1.7.0_25]
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2483)[:1.7.0_25]
at java.lang.Class.getConstructor0(Class.java:2793)[:1.7.0_25]
at java.lang.Class.newInstance(Class.java:345)[:1.7.0_25]
at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:4336)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2141)
... 27 more
Caused by: java.lang.ClassNotFoundException: org.apache.cxf.bus.blueprint.BlueprintNameSpaceHandlerFactory not found by org.apache.cxf.cxf-rt-core [107]
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:357)[:1.7.0_25]
at org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1374)
at org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1553)
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1484)
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:357)[:1.7.0_25]
... 33 more
I am not sure what is missing in my karaf container... can someone help me to get out of this issue