Hi all;
I am trying to use microstream (
https://microstream.one/) as my persistance solution.
i decided to go to with a module approach and created a new wildfly module with the minimum amout of jars needed for microstream (i did tests on the side)
i have exposed this module in the global modules of the standalone.xml.
when deploying my app (ear) i have a singleton EJB trying to use microstream.
I am getting a strange error:
MicrostreamService init failed: sun/misc/Unsafe: java.lang.NoClassDefFoundError: sun/misc/Unsafe
at one.microstream//one.microstream.memory.sun.JdkInternals.getMemoryAccess(JdkInternals.java:84)
at one.microstream//one.microstream.memory.sun.JdkInternals.<clinit>(JdkInternals.java:59)
...
Caused by: java.lang.ClassNotFoundException: sun.misc.Unsafe from [Module "one.microstream" from local module loader @13ad5cd3 (finder: local module finder @1c33c17b (roots: C:\dev_env\nx_microstream\nx\NMS\AS\wildfly-23.0.0.Final\modules,C:\dev_env\nx_microstream\nx\NMS\AS\wildfly-23.0.0.Final\modules\system\layers\base))]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
... 85 more
so it seems like microstream module is loaded and microstream starts to load but somehwere along the way some error happens...
is this jdk module related? i am not sure
any guidence would help
thanks!