hazelcast osgi on java 8

104 views
Skip to first unread message

david.da...@gmail.com

unread,
Oct 20, 2015, 1:22:52 PM10/20/15
to Hazelcast
I was having trouble getting hazelcast to run on jdk8 and I think it is
because the com.hazelcast.internal.osgi.OSGiScriptEngineManager can't
find a script engine. I am getting the error below but I know it can be
done because karaf uses hazelcast and runs on java 8.

Oct 19, 2015 1:58:20 PM
com.hazelcast.internal.osgi.OSGiScriptEngineManager
WARNING: Found ScriptEngineFactory candidate for
com.sun.script.javascript.RhinoScriptEngineFactory, but cannot load
class! -> java.lang.ClassNotFoundException:
com.sun.script.javascript.RhinoScriptEngineFactory not found by
com.hazelcast [4 

I am using a .bnd file to build and have included. 

-runsystempackages.bugfix = 
 sun.misc, 
 javax.script, 

Do I have to include the nashorn script engine or something.

Any help would be appreciated.

Thank you,
David Daniel

Jaromir Hamala

unread,
Nov 3, 2015, 6:10:32 AM11/3/15
to Hazelcast
Hello Daniel,

this is a known issue when a combination of OSGI & Hazelcast 3.5.x & JDK8 is used. It's fixed in 3.6. Please see this PR for details. Could you please try it Hazelcast 3.6 Early Access and report your results here.

Cheers,
Jaromir
Reply all
Reply to author
Forward
0 new messages