You run into this error when building latest karaf master branch with JDK11?
-------------
Freeman(Yue) Fang

Red Hat, Inc. 





> On Jun 17, 2019, at 4:39 PM, Steinar Bang <[email protected]> wrote:
> 
>>>>>> Steinar Bang <[email protected]>:
> 
>>> FYI, I’m using OpenJDK11, Karaf tests work for me with OpenJDK11
>>> Btw, my env is
> 
>>> Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 
>>> 2018-10-24T14:41:47-04:00)
>>> Maven home: /Users/ffang/kit/apache-maven-3.6.0
>>> Java version: 11, vendor: Oracle Corporation, runtime: 
>>> /Users/ffang/kit/jdk-11.jdk/Contents/Home
>>> Default locale: en_CA, platform encoding: UTF-8
>>> OS name: "mac os x", version: "10.10.5", arch: "x86_64", family: "mac"
>>> More details for java version
> 
>>> java -version
>>> openjdk version "11" 2018-09-25
>>> OpenJDK Runtime Environment 18.9 (build 11+28)
>>> OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
> 
>> That's very similar to my setup:
>> 1. same maven version (3.6.0)
>> 2. slightly older (I think) openjdk-11 than what I have:
>>     sb@lorenzo:~$ java -version
>>     openjdk version "11.0.3" 2019-04-16
>>     OpenJDK Runtime Environment (build 11.0.3+7-Debian-1bpo92)
>>     OpenJDK 64-Bit Server VM (build 11.0.3+7-Debian-1bpo92, mixed mode, 
>> sharing)
>> 3. same processor architecture
>> 4. different os, but both are unix'is systems, and file and socket
>>    operations and semantics should be similare, virtual management
>>    semantics should be similar, so I doubt that make any difference
> 
>> Hm...  I basically have no idea what's missing in my setup...:-)
> 
> This is the stack trace from the karaf.log of the pax exam karaf/itest/
> on my machine:
> 019-06-16T19:17:26,700 | ERROR | features-3-thread-1 | Felix                  
>           |  -  -  | Bundle org.apache.felix.framework [0] EventDispatcher: 
> Error during dispatch. (java.lang.NoClassDefFoundError: 
> org/apache/karaf/specs/locator/OsgiLocator)
> java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator
>       at 
> org.apache.karaf.specs.activator.Activator.register(Activator.java:125) ~[?:?]
>       at 
> org.apache.karaf.specs.activator.Activator.bundleChanged(Activator.java:97) 
> ~[?:?]
>       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:1021)
>  ~[?:?]
>       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) [?:?]
> 2019-06-16T19:17:26,704 | ERROR | FelixDispatchQueue | framework              
>           | 0 - org.apache.felix.framework - 5.6.12 | FrameworkEvent ERROR - 
> org.apache.felix.framework
> 
> -- 
> -- 
> ------------------
> OPS4J - http://www.ops4j.org - [email protected]
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "OPS4J" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ops4j/86blywndyi.fsf%40dod.no.
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ops4j/9F50F9F6-5C06-4277-BA6D-570818EE0386%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to