i get this Exception:
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.camunda.spin.Spin.S
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:397)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:449)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:406)
…
I tested this on Windows 7 & Debien 9.4 same Result.
Tomcat & Wildfly 10
Any Ideas ?
I can also see, that Spin is loaded.
2018-04-27 08:09:10,860 INFO [org.camunda.spin] (ServerService Thread Pool – 60) SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormatProvider[name = application/json]
2018-04-27 08:09:11,741 INFO [org.camunda.spin] (ServerService Thread Pool – 60) SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormatProvider[name = application/xml]
2018-04-27 08:09:11,790 INFO [org.camunda.spin] (ServerService Thread Pool – 60) SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormat[name = application/xml]
2018-04-27 08:09:11,790 INFO [org.camunda.spin] (ServerService Thread Pool – 60) SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormat[name = application/json]
is it possible that nashorn doesn’t search in the correct classpath ?
Maybe this Helps:
Caused by: java.lang.ClassNotFoundException: org.camunda.spin.Spin.S
at jdk.nashorn.internal.runtime.NativeJavaPackage.classNotFound(NativeJavaPackage.java:162)
at jdk.nashorn.internal.scripts.Script$3$^eval_.:program(:6)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
Seems that only nashorn can not find the class
I tested not the following Options:
Local full install Tomcat 7.9.0 alpha - works
Doker:
Tomcat 7.9.0 alpha 3 - works
latest - works
Wildfly latest - Not working
Wildfly 7.5.0 - Not working ( But it is a different error, something with valid certificate…)
Wildfly 7.9.0-snapshot - Not working
jboss 7.9.0-SNAPSHOT - Not Working ( But it is a different error, something with valid certificate…)
For my Opionion is something with the Wildfly config or integration not ok.
Hi Axel,
I recently came across the same ClassNotFoundException on WildFly 14, Camunda 7.10 while executing the following JavaScript snippet in a Script task:
var userName = {“lastname”:“Smith”,“firstname”:“Jack”);
S(JSON.stringify(userName));
Can you share how you fixed the problem? Which library did you declare as global? In which section of the standalone.xml file did you add new lines? How does the standalone.xml look like after your change?
Thanks in advance!
X.