Grzegorz Grzybek created KARAF-6174:
---------------------------------------
Summary: Strange case with nested features, conditionals and
resolver
Key: KARAF-6174
URL: https://issues.apache.org/jira/browse/KARAF-6174
Project: Karaf
Issue Type: Task
Reporter: Grzegorz Grzybek
Assignee: Grzegorz Grzybek
Just a place where I want to check some strange cases.
Case one: https://github.com/grgrzybek/karaf/commits/ggrzybek-conditionals
Case two:
{noformat}
karaf@root()> feature:install kie-camel
org.apache.karaf.features.internal.util.MultiException: Error restarting
bundles:
Activator start error in bundle org.apache.cxf.cxf-rt-transports-http
[146].
at
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1005)
at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058)
at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:994)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Suppressed: org.osgi.framework.BundleException: Activator start error
in bundle org.apache.cxf.cxf-rt-transports-http [146].
at
org.apache.felix.framework.Felix.activateBundle(Felix.java:2290)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2146)
at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
at
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:161)
at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1149)
at
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:997)
... 6 more
Caused by: java.lang.NoClassDefFoundError:
org/osgi/service/http/HttpService
at
org.apache.cxf.transport.http.osgi.HTTPTransportActivator.start(HTTPTransportActivator.java:62)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
at
org.apache.felix.framework.Felix.activateBundle(Felix.java:2240)
... 12 more
Caused by: java.lang.ClassNotFoundException:
org.osgi.service.http.HttpService not found by
org.apache.cxf.cxf-rt-transports-http [146]
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639)
at
org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 15 more
Error executing command: Error restarting bundles:
Activator start error in bundle org.apache.cxf.cxf-rt-transports-http
[146].
{noformat}
In case 2, pax-web-api is installed, kie-camel feature has nested cxf-http
feature, which has cxf-rt-transports-http bundle which has optional import for
org.osgi.service.http package.
cxf-rt-transports-http actually needs org.osgi.service.http packege (it
shouldn't be optional - it's a bug, I'll create CXF issue), but it helped me
detect that this bundle has not this optional wiring satisfied, bundle is
resolved, but fails at start.
refresh helps.
installing cxf-http itself immediately wires this optional import of
org.osgi.service.http.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)