I'm using Batik in a couple of applets I'm developing (
http://www.cl.cam.ac.uk/~whb21/svgDraw/svgCircuit.html is one example; the
applet is near the foot of the page)

At startup an AccessControlException occurs when Batik tries to create a
Rhino Interpreter from the InterpreterPool (exception trace at foot of
email).  js.jar is included in the archive attribute for the applet on the
page, and is available in the same directory as the applet.
>From what I can see delving into the code, RhinoClassLoader specifically
extends URLClassLoader, so I'm not sure if this a "can't find the class on
the server and not allowed to look elsewhere" (as if I had not included
js.jar) or if this exception is coming straight out of the way Batik is
written, and will always produce this error if the applet is unsigned?

So I have a few questions:
1.  How to stop this error (without signing or self-signing the applet -- 
self-signing will happen eventually but can't yet) .
2.  Is there any way of turning ECMAScript off altogether in the document
(but keeping the document "dynamic" so DOM updates made from my applet code
will occur appropriately).  In other words, is there a way to avoid
including the 580k js.jar in the archive for the applet?
3.  If I did switch it off, is there an easy way to attach onClick and
onDrag events to the SVG elements, to fire directly to Java (without going
through Javascript)  [I'm sure there must be but for some daft reason I
can't find it]

Will.

exception trace:
java.security.AccessControlException: access denied
(java.lang.RuntimePermission createClassLoader)
at java.securitiy.AccessControlContext.checkPermission
at java.securitiy.AccessController.checkPermission
at java.lang.SecurityManager.checkPermission
at java.lang.SecurityManager.checkCreateClassLoader
at java.lang.ClassLoader.<init>
at java.security.SecureClassLoader.<init>
at java.net.URLClassLoader.<init>
at org.apache.batik.script.rhino.RhinoClassLoader.<init>
at org.apache.batik.script.rhino.RhinoInterpreter.<init>
at org.apache.batik.script.rhino.RhinoInterpreterFactory.createInterpreter
at org.apache.batik.bridge.BridgeContext.getInterpreter
at org.apache.batik.BaseScriptingEnvironment.dispatchSVGLoadEvent
etc.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to