openzipkin / brave-karaf

Karaf integration and tests for Brave (java Zipkin tracer)
Apache License 2.0
7 stars 6 forks source link

Fixing 'java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator' for Karaf IT tests #53

Closed reta closed 4 years ago

reta commented 4 years ago

Found this issue in the logs:

2020-10-25T11:54:37,301 | ERROR | FelixDispatchQueue | FrameworkEvent                   | 0 - org.apache.felix.framework - 5.6.12 | FrameworkEvent ERROR
java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator
        at org.apache.karaf.specs.activator.Activator.register(Activator.java:124) ~[org.apache.karaf.specs.activator-4.2.10.jar:4.2.10]
        at org.apache.karaf.specs.activator.Activator.bundleChanged(Activator.java:96) ~[org.apache.karaf.specs.activator-4.2.10.jar:4.2.10]
        at org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915) ~[?:?]
        at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834) ~[?:?]
        at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516) ~[?:?]

        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) ~[?:?]
        at org.apache.felix.framework.StatefulResolver.fireResolvedEvents(StatefulResolver.java:1289) ~[?:?]
        at org.apache.felix.framework.StatefulResolver.resolve(StatefulResolver.java:512) ~[?:?]
        at org.apache.felix.framework.Felix.resolveBundles(Felix.java:4108) ~[?:?]
        at org.apache.felix.framework.FrameworkWiringImpl.resolveBundles(FrameworkWiringImpl.java:133) ~[?:?]
        at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.resolveBundles(BundleInstallSupportImpl.java:244) ~[?:?]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.resolveBundles(FeaturesServiceImpl.java:1168) ~[?:?]
        at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1023) ~[?:?]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) ~[?:?]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
        at java.lang.Thread.run(Thread.java:834) [?:?]
codefromthecrypt commented 4 years ago

Thanks very much @reta!