Yes, it's what I thought too. I fixed karaf unix shell and instances. I did a test using karaf.bat on a VM, probably forgot to cherry-pick the change.
Regards JB On 24/12/2018 00:15, Freeman Fang wrote: > Jaxb module was removed since JDK11 and we need those jaxb jars from > jdk9plus folder. > > Seems on windows those jars are not on CLASSPATH, should be something > wrong in karaf.bat script. I will take a close look. > ------------- > Freeman(Yue) Fang > > Red Hat, Inc. > > > > > >> On Dec 23, 2018, at 12:44 PM, Jean-Baptiste Onofré <j...@nanthrax.net >> <mailto:j...@nanthrax.net>> wrote: >> >> Hi, >> >> I'm suspecting something Windows specific as I tested Karaf 4.2.2 with >> JDK 11 on Linux. >> >> I remember Freeman did some changes around modules (especially JAXB). >> >> Regards >> JB >> >> On 23/12/2018 04:17, Leschke, Scott wrote: >>> I just tried this again but tried putting the JAXB jars from >>> lib/jdk9plus into lib/ext. This gets rid of the NoClassDefFoundError so >>> that would seem to indicate that the jar files in lib/jdk9plus are not >>> getting seen as would seem to be their purpose. The entire log file >>> consists of the following 4 entries: >>> >>> >>> >>> Dec 22, 2018 8:52:24 PM org.apache.karaf.main.lock.SimpleFileLock lock >>> >>> INFO: Trying to lock C:\karaf\apache-karaf-4.2.2\lock >>> >>> Dec 22, 2018 8:52:24 PM org.apache.karaf.main.lock.SimpleFileLock lock >>> >>> INFO: Lock acquired >>> >>> Dec 22, 2018 8:52:24 PM org.apache.karaf.main.Main$KarafLockCallback >>> lockAcquired >>> >>> INFO: Lock acquired. Setting startlevel to 100 >>> >>> 2018-12-22T20:52:26,571 | INFO | CM Configuration Updater >>> (ManagedService Update: pid=[org.apache.karaf.features.repos]) | >>> configadmin | 9 - org.apache.felix.configadmin - >>> 1.9.10 | Service for PID org.apache.karaf.features.repos seems to >>> already have been unregistered, not updating with configuration >>> >>> >>> >>> 4.2.1 mostly worked using JDK 11, apart from the fact that the process >>> would appear to freeze occasionally while using the console. Since I’m >>> running Karaf in the console in this case as well, maybe that’s the >>> underlying cause. >>> >>> >>> >>> The jstack –l of the process is as follows: >>> >>> >>> >>> 2018-12-21 12:00:42 >>> >>> Full thread dump Java HotSpot(TM) 64-Bit Server VM (11.0.1+13-LTS mixed >>> mode): >>> >>> >>> >>> Threads class SMR info: >>> >>> _java_thread_list=0x0000027e5c5c7410, length=33, elements={ >>> >>> 0x0000027e3d9d1000, 0x0000027e59f2c800, 0x0000027e59f35800, >>> 0x0000027e59f86000, >>> >>> 0x0000027e59f89000, 0x0000027e59f8a800, 0x0000027e59f96800, >>> 0x0000027e5a8e5000, >>> >>> 0x0000027e5a92c000, 0x0000027e5aabf000, 0x0000027e5ae28800, >>> 0x0000027e5aef4000, >>> >>> 0x0000027e5b094000, 0x0000027e5b094800, 0x0000027e5b0bd000, >>> 0x0000027e5b23d800, >>> >>> 0x0000027e5b23e800, 0x0000027e5b241800, 0x0000027e5b243800, >>> 0x0000027e5b241000, >>> >>> 0x0000027e5b244000, 0x0000027e5b242800, 0x0000027e5b23f000, >>> 0x0000027e5b240000, >>> >>> 0x0000027e5b301000, 0x0000027e5b2fb800, 0x0000027e5b2fd800, >>> 0x0000027e5b300000, >>> >>> 0x0000027e5b302000, 0x0000027e5b2fe800, 0x0000027e5b2fd000, >>> 0x0000027e5b2fc000, >>> >>> 0x0000027e5b2ff800 >>> >>> } >>> >>> >>> >>> "main" #1 prio=5 os_prio=0 cpu=1187.50ms elapsed=182.90s >>> tid=0x0000027e3d9d1000 nid=0x7ec in Object.wait() [0x0000009e999ff000] >>> >>> java.lang.Thread.State: WAITING (on object monitor) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Native Method) >>> >>> - waiting on <0x00000000e032fc00> (a >>> org.apache.felix.framework.util.ThreadGate) >>> >>> at >>> org.apache.felix.framework.util.ThreadGate.await(ThreadGate.java:79) >>> >>> - waiting to re-lock in wait() <0x00000000e032fc00> (a >>> org.apache.felix.framework.util.ThreadGate) >>> >>> at >>> org.apache.felix.framework.Felix.waitForStop(Felix.java:1075) >>> >>> at org.apache.karaf.main.Main.awaitShutdown(Main.java:641) >>> >>> at org.apache.karaf.main.Main.main(Main.java:188) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "Reference Handler" #2 daemon prio=10 os_prio=2 cpu=0.00ms >>> elapsed=182.82s tid=0x0000027e59f2c800 nid=0xb58 waiting on condition >>> [0x0000009e9a0ff000] >>> >>> java.lang.Thread.State: RUNNABLE >>> >>> at >>> java.lang.ref.Reference.waitForReferencePendingList(java.base@11.0.1/Native >>> Method) >>> >>> at >>> java.lang.ref.Reference.processPendingReferences(java.base@11.0.1/Reference.java:241) >>> >>> at >>> java.lang.ref.Reference$ReferenceHandler.run(java.base@11.0.1/Reference.java:213) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "Finalizer" #3 daemon prio=8 os_prio=1 cpu=0.00ms elapsed=182.82s >>> tid=0x0000027e59f35800 nid=0x11cc in Object.wait() [0x0000009e9a1ff000] >>> >>> java.lang.Thread.State: WAITING (on object monitor) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Native Method) >>> >>> - waiting on <0x00000000e01df4d8> (a >>> java.lang.ref.ReferenceQueue$Lock) >>> >>> at >>> java.lang.ref.ReferenceQueue.remove(java.base@11.0.1/ReferenceQueue.java:155) >>> >>> - waiting to re-lock in wait() <0x00000000e01df4d8> (a >>> java.lang.ref.ReferenceQueue$Lock) >>> >>> at >>> java.lang.ref.ReferenceQueue.remove(java.base@11.0.1/ReferenceQueue.java:176) >>> >>> at >>> java.lang.ref.Finalizer$FinalizerThread.run(java.base@11.0.1/Finalizer.java:170) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "Signal Dispatcher" #4 daemon prio=9 os_prio=2 cpu=0.00ms >>> elapsed=182.77s tid=0x0000027e59f86000 nid=0xe24 runnable >>> [0x0000000000000000] >>> >>> java.lang.Thread.State: RUNNABLE >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "Attach Listener" #5 daemon prio=5 os_prio=2 cpu=0.00ms elapsed=182.77s >>> tid=0x0000027e59f89000 nid=0x10f4 waiting on condition >>> [0x0000000000000000] >>> >>> java.lang.Thread.State: RUNNABLE >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "C2 CompilerThread0" #6 daemon prio=9 os_prio=2 cpu=1500.00ms >>> elapsed=182.77s tid=0x0000027e59f8a800 nid=0x11d8 waiting on condition >>> [0x0000000000000000] >>> >>> java.lang.Thread.State: RUNNABLE >>> >>> No compile task >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "C1 CompilerThread0" #7 daemon prio=9 os_prio=2 cpu=1000.00ms >>> elapsed=182.77s tid=0x0000027e59f96800 nid=0x1408 waiting on condition >>> [0x0000000000000000] >>> >>> java.lang.Thread.State: RUNNABLE >>> >>> No compile task >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "Sweeper thread" #8 daemon prio=9 os_prio=2 cpu=15.63ms elapsed=182.77s >>> tid=0x0000027e5a8e5000 nid=0xdf0 runnable [0x0000000000000000] >>> >>> java.lang.Thread.State: RUNNABLE >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "Common-Cleaner" #9 daemon prio=8 os_prio=1 cpu=0.00ms elapsed=182.69s >>> tid=0x0000027e5a92c000 nid=0x1780 in Object.wait() [0x0000009e9a7ff000] >>> >>> java.lang.Thread.State: TIMED_WAITING (on object monitor) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Native Method) >>> >>> - waiting on <no object reference available> >>> >>> at >>> java.lang.ref.ReferenceQueue.remove(java.base@11.0.1/ReferenceQueue.java:155) >>> >>> - waiting to re-lock in wait() <0x00000000e012c510> (a >>> java.lang.ref.ReferenceQueue$Lock) >>> >>> at >>> jdk.internal.ref.CleanerImpl.run(java.base@11.0.1/CleanerImpl.java:148) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> at >>> jdk.internal.misc.InnocuousThread.run(java.base@11.0.1/InnocuousThread.java:134) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "Service Thread" #10 daemon prio=9 os_prio=0 cpu=0.00ms elapsed=182.49s >>> tid=0x0000027e5aabf000 nid=0xa88 runnable [0x0000000000000000] >>> >>> java.lang.Thread.State: RUNNABLE >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "RMI TCP Accept-0" #12 daemon prio=5 os_prio=0 cpu=0.00ms >>> elapsed=181.88s tid=0x0000027e5ae28800 nid=0x1388 runnable >>> [0x0000009e9a9fe000] >>> >>> java.lang.Thread.State: RUNNABLE >>> >>> at >>> java.net.PlainSocketImpl.accept0(java.base@11.0.1/Native Method) >>> >>> at >>> java.net.PlainSocketImpl.socketAccept(java.base@11.0.1/PlainSocketImpl.java:159) >>> >>> at >>> java.net.AbstractPlainSocketImpl.accept(java.base@11.0.1/AbstractPlainSocketImpl.java:458) >>> >>> at >>> java.net.ServerSocket.implAccept(java.base@11.0.1/ServerSocket.java:551) >>> >>> at >>> java.net.ServerSocket.accept(java.base@11.0.1/ServerSocket.java:519) >>> >>> at >>> sun.management.jmxremote.LocalRMIServerSocketFactory$1.accept(jdk.management.agent@11.0.1/LocalRMIServerSocketFactory.java:52) >>> >>> at >>> sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(java.rmi@11.0.1/TCPTransport.java:394) >>> >>> at >>> sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(java.rmi@11.0.1/TCPTransport.java:366) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "FelixDispatchQueue" #13 prio=5 os_prio=0 cpu=0.00ms elapsed=181.52s >>> tid=0x0000027e5aef4000 nid=0x1238 in Object.wait() [0x0000009e9acfe000] >>> >>> java.lang.Thread.State: WAITING (on object monitor) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Native Method) >>> >>> - waiting on <0x00000000e032fe00> (a java.util.ArrayList) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Object.java:328) >>> >>> at >>> org.apache.felix.framework.EventDispatcher.run(EventDispatcher.java:1122) >>> >>> - waiting to re-lock in wait() <0x00000000e032fe00> (a >>> java.util.ArrayList) >>> >>> at >>> org.apache.felix.framework.EventDispatcher.access$000(EventDispatcher.java:54) >>> >>> at >>> org.apache.felix.framework.EventDispatcher$1.run(EventDispatcher.java:102) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "FelixFrameworkWiring" #16 daemon prio=5 os_prio=0 cpu=0.00ms >>> elapsed=181.32s tid=0x0000027e5b094000 nid=0x110c in Object.wait() >>> [0x0000009e9affe000] >>> >>> java.lang.Thread.State: WAITING (on object monitor) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Native Method) >>> >>> - waiting on <0x00000000e03304a0> (a java.util.ArrayList) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Object.java:328) >>> >>> at >>> org.apache.felix.framework.FrameworkWiringImpl.run(FrameworkWiringImpl.java:172) >>> >>> - waiting to re-lock in wait() <0x00000000e03304a0> (a >>> java.util.ArrayList) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "FelixStartLevel" #17 daemon prio=5 os_prio=0 cpu=343.75ms >>> elapsed=181.32s tid=0x0000027e5b094800 nid=0xae0 in Object.wait() >>> [0x0000009e9b0ff000] >>> >>> java.lang.Thread.State: WAITING (on object monitor) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Native Method) >>> >>> - waiting on <0x00000000e03307f0> (a java.util.ArrayList) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Object.java:328) >>> >>> at >>> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:283) >>> >>> - waiting to re-lock in wait() <0x00000000e03307f0> (a >>> java.util.ArrayList) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "Karaf Lock Monitor Thread" #18 prio=5 os_prio=0 cpu=62.50ms >>> elapsed=181.12s tid=0x0000027e5b0bd000 nid=0x270 waiting on condition >>> [0x0000009e9b1ff000] >>> >>> java.lang.Thread.State: TIMED_WAITING (sleeping) >>> >>> at java.lang.Thread.sleep(java.base@11.0.1/Native Method) >>> >>> at org.apache.karaf.main.Main.doMonitor(Main.java:404) >>> >>> at org.apache.karaf.main.Main.access$100(Main.java:74) >>> >>> at org.apache.karaf.main.Main$3.run(Main.java:377) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "Karaf Shutdown Socket Thread" #19 daemon prio=5 os_prio=0 cpu=0.00ms >>> elapsed=181.01s tid=0x0000027e5b23d800 nid=0x1628 runnable >>> [0x0000009e9b2ff000] >>> >>> java.lang.Thread.State: RUNNABLE >>> >>> at >>> java.net.PlainSocketImpl.accept0(java.base@11.0.1/Native Method) >>> >>> at >>> java.net.PlainSocketImpl.socketAccept(java.base@11.0.1/PlainSocketImpl.java:159) >>> >>> at >>> java.net.AbstractPlainSocketImpl.accept(java.base@11.0.1/AbstractPlainSocketImpl.java:458) >>> >>> at >>> java.net.ServerSocket.implAccept(java.base@11.0.1/ServerSocket.java:551) >>> >>> at >>> java.net.ServerSocket.accept(java.base@11.0.1/ServerSocket.java:519) >>> >>> at >>> org.apache.karaf.main.ShutdownSocketThread.run(ShutdownSocketThread.java:65) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "EventAdminAsyncThread #1" #20 daemon prio=5 os_prio=0 cpu=0.00ms >>> elapsed=180.94s tid=0x0000027e5b23e800 nid=0x177c waiting on condition >>> [0x0000009e9b3fe000] >>> >>> java.lang.Thread.State: WAITING (parking) >>> >>> at jdk.internal.misc.Unsafe.park(java.base@11.0.1/Native >>> Method) >>> >>> - parking to wait for <0x00000000e048cfc8> (a >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) >>> >>> at >>> java.util.concurrent.locks.LockSupport.park(java.base@11.0.1/LockSupport.java:194) >>> >>> at >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.1/AbstractQueuedSynchronizer.java:2081) >>> >>> at >>> java.util.concurrent.LinkedBlockingQueue.take(java.base@11.0.1/LinkedBlockingQueue.java:433) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.1/ThreadPoolExecutor.java:1054) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.1/ThreadPoolExecutor.java:1114) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.1/ThreadPoolExecutor.java:628) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "EventAdminAsyncThread #2" #21 daemon prio=5 os_prio=0 cpu=0.00ms >>> elapsed=180.90s tid=0x0000027e5b241800 nid=0xc0c waiting on condition >>> [0x0000009e9b4fe000] >>> >>> java.lang.Thread.State: WAITING (parking) >>> >>> at jdk.internal.misc.Unsafe.park(java.base@11.0.1/Native >>> Method) >>> >>> - parking to wait for <0x00000000e048cfc8> (a >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) >>> >>> at >>> java.util.concurrent.locks.LockSupport.park(java.base@11.0.1/LockSupport.java:194) >>> >>> at >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.1/AbstractQueuedSynchronizer.java:2081) >>> >>> at >>> java.util.concurrent.LinkedBlockingQueue.take(java.base@11.0.1/LinkedBlockingQueue.java:433) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.1/ThreadPoolExecutor.java:1054) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.1/ThreadPoolExecutor.java:1114) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.1/ThreadPoolExecutor.java:628) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "EventAdminAsyncThread #3" #22 daemon prio=5 os_prio=0 cpu=0.00ms >>> elapsed=180.90s tid=0x0000027e5b243800 nid=0x6e0 waiting on condition >>> [0x0000009e9b5fe000] >>> >>> java.lang.Thread.State: WAITING (parking) >>> >>> at jdk.internal.misc.Unsafe.park(java.base@11.0.1/Native >>> Method) >>> >>> - parking to wait for <0x00000000e048cfc8> (a >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) >>> >>> at >>> java.util.concurrent.locks.LockSupport.park(java.base@11.0.1/LockSupport.java:194) >>> >>> at >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.1/AbstractQueuedSynchronizer.java:2081) >>> >>> at >>> java.util.concurrent.LinkedBlockingQueue.take(java.base@11.0.1/LinkedBlockingQueue.java:433) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.1/ThreadPoolExecutor.java:1054) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.1/ThreadPoolExecutor.java:1114) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.1/ThreadPoolExecutor.java:628) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "EventAdminAsyncThread #4" #23 daemon prio=5 os_prio=0 cpu=0.00ms >>> elapsed=180.81s tid=0x0000027e5b241000 nid=0x1674 waiting on condition >>> [0x0000009e9b6ff000] >>> >>> java.lang.Thread.State: WAITING (parking) >>> >>> at jdk.internal.misc.Unsafe.park(java.base@11.0.1/Native >>> Method) >>> >>> - parking to wait for <0x00000000e048cfc8> (a >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) >>> >>> at >>> java.util.concurrent.locks.LockSupport.park(java.base@11.0.1/LockSupport.java:194) >>> >>> at >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.1/AbstractQueuedSynchronizer.java:2081) >>> >>> at >>> java.util.concurrent.LinkedBlockingQueue.take(java.base@11.0.1/LinkedBlockingQueue.java:433) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.1/ThreadPoolExecutor.java:1054) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.1/ThreadPoolExecutor.java:1114) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.1/ThreadPoolExecutor.java:628) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "EventAdminAsyncThread #5" #24 daemon prio=5 os_prio=0 cpu=0.00ms >>> elapsed=180.79s tid=0x0000027e5b244000 nid=0x1054 waiting on condition >>> [0x0000009e9b7ff000] >>> >>> java.lang.Thread.State: WAITING (parking) >>> >>> at jdk.internal.misc.Unsafe.park(java.base@11.0.1/Native >>> Method) >>> >>> - parking to wait for <0x00000000e048cfc8> (a >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) >>> >>> at >>> java.util.concurrent.locks.LockSupport.park(java.base@11.0.1/LockSupport.java:194) >>> >>> at >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.1/AbstractQueuedSynchronizer.java:2081) >>> >>> at >>> java.util.concurrent.LinkedBlockingQueue.take(java.base@11.0.1/LinkedBlockingQueue.java:433) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.1/ThreadPoolExecutor.java:1054) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.1/ThreadPoolExecutor.java:1114) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.1/ThreadPoolExecutor.java:628) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "EventAdminAsyncThread #6" #25 daemon prio=5 os_prio=0 cpu=0.00ms >>> elapsed=180.78s tid=0x0000027e5b242800 nid=0xb70 waiting on condition >>> [0x0000009e9b8fe000] >>> >>> java.lang.Thread.State: WAITING (parking) >>> >>> at jdk.internal.misc.Unsafe.park(java.base@11.0.1/Native >>> Method) >>> >>> - parking to wait for <0x00000000e048cfc8> (a >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) >>> >>> at >>> java.util.concurrent.locks.LockSupport.park(java.base@11.0.1/LockSupport.java:194) >>> >>> at >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.1/AbstractQueuedSynchronizer.java:2081) >>> >>> at >>> java.util.concurrent.LinkedBlockingQueue.take(java.base@11.0.1/LinkedBlockingQueue.java:433) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.1/ThreadPoolExecutor.java:1054) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.1/ThreadPoolExecutor.java:1114) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.1/ThreadPoolExecutor.java:628) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "EventAdminAsyncThread #7" #26 daemon prio=5 os_prio=0 cpu=15.63ms >>> elapsed=180.51s tid=0x0000027e5b23f000 nid=0x1438 waiting on condition >>> [0x0000009e9b9ff000] >>> >>> java.lang.Thread.State: WAITING (parking) >>> >>> at jdk.internal.misc.Unsafe.park(java.base@11.0.1/Native >>> Method) >>> >>> - parking to wait for <0x00000000e048cfc8> (a >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) >>> >>> at >>> java.util.concurrent.locks.LockSupport.park(java.base@11.0.1/LockSupport.java:194) >>> >>> at >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.1/AbstractQueuedSynchronizer.java:2081) >>> >>> at >>> java.util.concurrent.LinkedBlockingQueue.take(java.base@11.0.1/LinkedBlockingQueue.java:433) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.1/ThreadPoolExecutor.java:1054) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.1/ThreadPoolExecutor.java:1114) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.1/ThreadPoolExecutor.java:628) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "EventAdminAsyncThread #8" #27 daemon prio=5 os_prio=0 cpu=0.00ms >>> elapsed=180.50s tid=0x0000027e5b240000 nid=0x127c waiting on condition >>> [0x0000009e9baff000] >>> >>> java.lang.Thread.State: WAITING (parking) >>> >>> at jdk.internal.misc.Unsafe.park(java.base@11.0.1/Native >>> Method) >>> >>> - parking to wait for <0x00000000e048cfc8> (a >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) >>> >>> at >>> java.util.concurrent.locks.LockSupport.park(java.base@11.0.1/LockSupport.java:194) >>> >>> at >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.1/AbstractQueuedSynchronizer.java:2081) >>> >>> at >>> java.util.concurrent.LinkedBlockingQueue.take(java.base@11.0.1/LinkedBlockingQueue.java:433) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.1/ThreadPoolExecutor.java:1054) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.1/ThreadPoolExecutor.java:1114) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.1/ThreadPoolExecutor.java:628) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "EventAdminAsyncThread #9" #28 daemon prio=5 os_prio=0 cpu=0.00ms >>> elapsed=180.48s tid=0x0000027e5b301000 nid=0x70c waiting on condition >>> [0x0000009e9bbfe000] >>> >>> java.lang.Thread.State: WAITING (parking) >>> >>> at jdk.internal.misc.Unsafe.park(java.base@11.0.1/Native >>> Method) >>> >>> - parking to wait for <0x00000000e048cfc8> (a >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) >>> >>> at >>> java.util.concurrent.locks.LockSupport.park(java.base@11.0.1/LockSupport.java:194) >>> >>> at >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.1/AbstractQueuedSynchronizer.java:2081) >>> >>> at >>> java.util.concurrent.LinkedBlockingQueue.take(java.base@11.0.1/LinkedBlockingQueue.java:433) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.1/ThreadPoolExecutor.java:1054) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.1/ThreadPoolExecutor.java:1114) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.1/ThreadPoolExecutor.java:628) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "Coordination Timer" #29 daemon prio=5 os_prio=0 cpu=0.00ms >>> elapsed=180.48s tid=0x0000027e5b2fb800 nid=0x5ac in Object.wait() >>> [0x0000009e9bcfe000] >>> >>> java.lang.Thread.State: WAITING (on object monitor) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Native Method) >>> >>> - waiting on <0x00000000e6832ff0> (a java.util.TaskQueue) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Object.java:328) >>> >>> at >>> java.util.TimerThread.mainLoop(java.base@11.0.1/Timer.java:527) >>> >>> - waiting to re-lock in wait() <0x00000000e6832ff0> (a >>> java.util.TaskQueue) >>> >>> at >>> java.util.TimerThread.run(java.base@11.0.1/Timer.java:506) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "EventAdminAsyncThread #10" #30 daemon prio=5 os_prio=0 cpu=0.00ms >>> elapsed=180.44s tid=0x0000027e5b2fd800 nid=0x17a8 waiting on condition >>> [0x0000009e9bdff000] >>> >>> java.lang.Thread.State: WAITING (parking) >>> >>> at jdk.internal.misc.Unsafe.park(java.base@11.0.1/Native >>> Method) >>> >>> - parking to wait for <0x00000000e048cfc8> (a >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) >>> >>> at >>> java.util.concurrent.locks.LockSupport.park(java.base@11.0.1/LockSupport.java:194) >>> >>> at >>> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.1/AbstractQueuedSynchronizer.java:2081) >>> >>> at >>> java.util.concurrent.LinkedBlockingQueue.take(java.base@11.0.1/LinkedBlockingQueue.java:433) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.1/ThreadPoolExecutor.java:1054) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.1/ThreadPoolExecutor.java:1114) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.1/ThreadPoolExecutor.java:628) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "CM Configuration Updater" #31 daemon prio=5 os_prio=0 cpu=328.13ms >>> elapsed=180.44s tid=0x0000027e5b300000 nid=0x944 in Object.wait() >>> [0x0000009e9beff000] >>> >>> java.lang.Thread.State: WAITING (on object monitor) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Native Method) >>> >>> - waiting on <0x00000000e680c710> (a java.util.LinkedList) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Object.java:328) >>> >>> at >>> org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:79) >>> >>> - waiting to re-lock in wait() <0x00000000e680c710> (a >>> java.util.LinkedList) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "CM Event Dispatcher" #32 daemon prio=5 os_prio=0 cpu=0.00ms >>> elapsed=180.44s tid=0x0000027e5b302000 nid=0x114c in Object.wait() >>> [0x0000009e9bfff000] >>> >>> java.lang.Thread.State: WAITING (on object monitor) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Native Method) >>> >>> - waiting on <0x00000000e680b920> (a java.util.LinkedList) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Object.java:328) >>> >>> at >>> org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:79) >>> >>> - waiting to re-lock in wait() <0x00000000e680b920> (a >>> java.util.LinkedList) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "FileSystemWatchService" #34 daemon prio=5 os_prio=0 cpu=0.00ms >>> elapsed=180.29s tid=0x0000027e5b2fe800 nid=0x404 runnable >>> [0x0000009e9c0ff000] >>> >>> java.lang.Thread.State: RUNNABLE >>> >>> at >>> sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus0(java.base@11.0.1/Native >>> Method) >>> >>> at >>> sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus(java.base@11.0.1/WindowsNativeDispatcher.java:1036) >>> >>> at >>> sun.nio.fs.WindowsWatchService$Poller.run(java.base@11.0.1/WindowsWatchService.java:587) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "fileinstall-C:\karaf\apache-karaf-4.2.2\etc" #33 daemon prio=5 >>> os_prio=0 cpu=0.00ms elapsed=179.93s tid=0x0000027e5b2fd000 nid=0xba0 in >>> Object.wait() [0x0000009e9c1ff000] >>> >>> java.lang.Thread.State: TIMED_WAITING (on object monitor) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Native Method) >>> >>> - waiting on <no object reference available> >>> >>> at >>> org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:320) >>> >>> - waiting to re-lock in wait() <0x00000000e6832af8> (a >>> org.apache.felix.fileinstall.internal.DirectoryWatcher) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "FileSystemWatchService" #37 daemon prio=5 os_prio=0 cpu=0.00ms >>> elapsed=179.76s tid=0x0000027e5b2fc000 nid=0x163c runnable >>> [0x0000009e9c3ff000] >>> >>> java.lang.Thread.State: RUNNABLE >>> >>> at >>> sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus0(java.base@11.0.1/Native >>> Method) >>> >>> at >>> sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus(java.base@11.0.1/WindowsNativeDispatcher.java:1036) >>> >>> at >>> sun.nio.fs.WindowsWatchService$Poller.run(java.base@11.0.1/WindowsWatchService.java:587) >>> >>> at java.lang.Thread.run(java.base@11.0.1/Thread.java:834) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "fileinstall-C:\karaf\apache-karaf-4.2.2/deploy" #36 daemon prio=5 >>> os_prio=0 cpu=0.00ms elapsed=179.76s tid=0x0000027e5b2ff800 nid=0xfd8 in >>> Object.wait() [0x0000009e9c4ff000] >>> >>> java.lang.Thread.State: TIMED_WAITING (on object monitor) >>> >>> at java.lang.Object.wait(java.base@11.0.1/Native Method) >>> >>> - waiting on <no object reference available> >>> >>> at >>> org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:320) >>> >>> - waiting to re-lock in wait() <0x00000000e7574ca0> (a >>> org.apache.felix.fileinstall.internal.DirectoryWatcher) >>> >>> >>> >>> Locked ownable synchronizers: >>> >>> - None >>> >>> >>> >>> "VM Thread" os_prio=2 cpu=31.25ms elapsed=182.83s tid=0x0000027e59f07800 >>> nid=0xd84 runnable >>> >>> >>> >>> "GC Thread#0" os_prio=2 cpu=46.88ms elapsed=182.88s >>> tid=0x0000027e3d9e8000 nid=0xa94 runnable >>> >>> >>> >>> "GC Thread#1" os_prio=2 cpu=31.25ms elapsed=181.84s >>> tid=0x0000027e5ad60000 nid=0x630 runnable >>> >>> >>> >>> "G1 Main Marker" os_prio=2 cpu=0.00ms elapsed=182.88s >>> tid=0x0000027e3d9fc000 nid=0x16a8 runnable >>> >>> >>> >>> "G1 Conc#0" os_prio=2 cpu=0.00ms elapsed=182.88s tid=0x0000027e3d9fe000 >>> nid=0x101c runnable >>> >>> >>> >>> "G1 Refine#0" os_prio=2 cpu=0.00ms elapsed=182.86s >>> tid=0x0000027e3da7d000 nid=0x410 runnable >>> >>> >>> >>> "G1 Young RemSet Sampling" os_prio=2 cpu=0.00ms elapsed=182.86s >>> tid=0x0000027e3da82800 nid=0x8a8 runnable >>> >>> "VM Periodic Task Thread" os_prio=2 cpu=0.00ms elapsed=181.86s >>> tid=0x0000027e5ad67800 nid=0x1744 waiting on condition >>> >>> >>> >>> JNI global refs: 16, weak refs: 0 >>> >>> >>> >>> >>> >>> *From:*Leschke, Scott [mailto:slesc...@medline.com] >>> *Sent:* Friday, December 21, 2018 1:26 PM >>> *To:* user@karaf.apache.org <mailto:user@karaf.apache.org> >>> *Subject:* RE: Karaf 4.2.2 with jdk 11 >>> >>> >>> >>> It looks to me like the jaxb jars are getting added to the classpath >>> within karaf.bat and should be found. What do I not see? >>> >>> >>> >>> if %JAVA_VERSION% GTR 8 ( >>> >>> pushd "%KARAF_HOME%\lib\jdk9plus" >>> >>> for %%G in (*.jar) do >>> call:APPEND_TO_JDK9PLUS_CLASSPATH %%G >>> >>> popd >>> >>> >>> >>> *From:* Leschke, Scott <slesc...@medline.com >>> <mailto:slesc...@medline.com>> >>> *Sent:* Friday, December 21, 2018 12:53 PM >>> *To:* user@karaf.apache.org <mailto:user@karaf.apache.org> >>> *Subject:* RE: Karaf 4.2.2 with jdk 11 >>> >>> >>> >>> I did not. I have a vague recollection that somebody else may have run >>> into this recently. Where is this to be added? Directly in karaf.bat? >>> That would be an –add-modules java.xml.bind, correct? >>> >>> >>> >>> *From:* Jean-Baptiste Onofré <j...@nanthrax.net >>> <mailto:j...@nanthrax.net> <mailto:j...@nanthrax.net>> >>> *Sent:* Friday, December 21, 2018 12:25 PM >>> *To:* user@karaf.apache.org <mailto:user@karaf.apache.org> >>> <mailto:user@karaf.apache.org> >>> *Subject:* Re: Karaf 4.2.2 with jdk 11 >>> >>> >>> >>> Did you enable the jaxb module in your jdk 11 ? >>> >>> Le 21 déc. 2018, à 19:11, "Leschke, Scott" <slesc...@medline.com >>> <mailto:slesc...@medline.com> >>> <mailto:slesc...@medline.com>> a écrit: >>> >>> What’s the statement on JDK 11 support in 4.2.2. I’ve not had any >>> luck with getting 4.2.2 to run under Windows Server 2016. I unzip >>> the distro, and run karaf.bat in the console. Karaf starts and then >>> appears to hang, never getting to the prompt. V4.2.1 runs fine >>> under the same scenario though. >>> >>> >>> >>> In the log, all I get is the following: >>> >>> >>> >>> Dec 21, 2018 11:57:41 AM org.apache.karaf.main.lock.SimpleFileLock >>> lock >>> >>> INFO: Trying to lock C:\karaf\apache-karaf-4.2.2\lock >>> >>> Dec 21, 2018 11:57:41 AM org.apache.karaf.main.lock.SimpleFileLock >>> lock >>> >>> INFO: Lock acquired >>> >>> Dec 21, 2018 11:57:41 AM >>> org.apache.karaf.main.Main$KarafLockCallback lockAcquired >>> >>> INFO: Lock acquired. Setting startlevel to 100 >>> >>> 2018-12-21T11:57:43,012 | WARN | FelixStartLevel | >>> Activator | 11 - >>> org.apache.karaf.features.core - 4.2.2 | Error starting activator >>> >>> java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException >>> >>> at >>> >>> org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:166) >>> ~[11:org.apache.karaf.features.core:4.2.2] >>> >>> at >>> org.apache.karaf.util.tracker.BaseActivator.start(BaseActivator.java:89) >>> [11:org.apache.karaf.features.core:4.2.2] >>> >>> at >>> >>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) >>> [?:?] >>> >>> at >>> org.apache.felix.framework.Felix.activateBundle(Felix.java:2240) [?:?] >>> >>> at >>> org.apache.felix.framework.Felix.startBundle(Felix.java:2146) [?:?] >>> >>> at >>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373) >>> [?:?] >>> >>> at >>> >>> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) >>> [?:?] >>> >>> at java.lang.Thread.run(Thread.java:834) [?:?] >>> >>> Caused by: java.lang.ClassNotFoundException: >>> javax.xml.bind.JAXBException >>> >>> at >>> java.net.URLClassLoader.findClass(URLClassLoader.java:471) ~[?:?] >>> >>> at >>> java.lang.ClassLoader.loadClass(ClassLoader.java:588) ~[?:?] >>> >>> at >>> java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[?:?] >>> >>> at >>> >>> org.apache.felix.framework.ExtensionManager$ExtensionManagerWiring.getClassByDelegation(ExtensionManager.java:940) >>> ~[?:?] >>> >>> at >>> >>> org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1660) >>> ~[?:?] >>> >>> at >>> >>> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1590) >>> ~[?:?] >>> >>> 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:521) ~[?:?] >>> >>> ... 8 more >>> >>> >>> >>> Scott >>> >> >> -- >> Jean-Baptiste Onofré >> jbono...@apache.org <mailto:jbono...@apache.org> >> http://blog.nanthrax.net >> Talend - http://www.talend.com >> > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com