Class loading issue for plugin
Posted: Thu Aug 09, 2012 7:55 pm
I am developing a custom plugin and am running into issues with class loading it looks like? I placed the following into my plugin.xml file:
These are the issues:
I am using a ScriptEngineFactory class from a script-api.jar library to use for beanshell scripting. This is the following error that I get:
From code:
Trying to place saxon9 jars on the runtime path is resulting in the following warnings:
Code: Select all
classLoaderType="preferReferencedResources"
I am using a ScriptEngineFactory class from a script-api.jar library to use for beanshell scripting. This is the following error that I get:
Code: Select all
"Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: com.sun.script.javascript.RhinoScriptEngineFactory cannot be cast to javax.script.ScriptEngineFactory"
Code: Select all
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
private ScriptEngineManager mgr = new ScriptEngineManager();;
private ScriptEngine bshEngine = mgr.getEngineByName("beanshell");
Trying to place saxon9 jars on the runtime path is resulting in the following warnings:
Code: Select all
Warning: external object model net.sf.saxon.dom.DOMEnvelope has been loaded, but is not an instance of net.sf.saxon.om.ExternalObjectModel
Warning: external object model net.sf.saxon.dom.DOMObjectModel has been loaded, but is not an instance of net.sf.saxon.om.ExternalObjectModel