xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas DeWeese <Thomas.DeWe...@Kodak.com>
Subject Re: Applet scripting security
Date Tue, 11 Jan 2005 11:23:27 GMT
Hi Bertlan,

    I think you can get this to work by simply stripping the js.jar
file that is distributed with Batik so it doesn't include the classes
from org/mozilla/javascript/optimizer (you can also strip anything
outside of the org/mozilla/javascript/ from the jar).

Bertalan Fodor wrote:

> I've found some message in the archive about this problem, but no answer.
> I have Batik-1.5.1.
> I'm writing an applet. The applet works but scripting does not.
> With the Rhino included in Batik-1.5.1 I get the following exception:
> 
> java.security.AccessControlException: access denied 
> (java.lang.RuntimePermission createClassLoader)



> 
> and the error message: unkown language: text/ecmascript
> 
> 
> With Rhino 1.6R1 I get the following exception:
> 
> java.lang.RuntimeException: NOT SUPPORTED
>     at 
> org.apache.batik.script.rhino.BatikSecurityController.createClassLoader(Unknown 
> Source)
>     at 
> org.mozilla.javascript.SecurityController.createLoader(SecurityController.java:143) 
> 
> ...
> 
> 
> and the error message:
> SVG Error: NOT SUPPORTED
> 
> 
> Perhaps I have to make the user give some permission to the applet when 
> loading it. But I haven't found anything about how to do this.
> 
> Please help,
> 
> Bert
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message