AnsweredAssumed Answered

Rhino Tomcat8 JDK 7 / Not working

Question asked by martinfranz on Feb 16, 2016
Latest reply on Feb 17, 2016 by martinfranz
Hey all,

After migrating my running Explorer and REST (both 5.16) from Tomcat 7.x to Tomcat 8.x
the Script Tasks are not running anymore. Especially if I use: importPackage(java.lang) or anything else …   

I did not touch the jdk. As i know that rhino works slightly different with jdk 8.

java.lang.StringIndexOutOfBoundsException: String index out of range: 3
at java.lang.String.charAt(String.java:658)
at org.apache.catalina.loader.WebappClassLoaderBase.filter(WebappClassLoaderBase.java:2780)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1253)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1142)
at sun.org.mozilla.javascript.internal.Kit.classOrNull(Kit.java:92)

Has anyone any idea?

Best regards,

Martin

Outcomes