On Wed, 19 Sep 2001 [EMAIL PROTECTED] wrote:

> Hi Folks,
> 
> I have problems using dom4j in Applets. I added dom4j, sax2, sax2-ext, jaxp
> and crimson classes into a single jar file that contains the classes.
> After when I run the Code as an Application, all works fine. A applet viewed
> in browser throws following Excpetion:
> 
> java.lang.ExceptionInInitializerError: java.security.AccessControlException:
> access denied (java.util.PropertyPermission org.dom4j.factory read)
>       at java.security.AccessControlContext.checkPermission(Unknown Source)
>       at java.security.AccessController.checkPermission(Unknown Source) 
>       at java.lang.SecurityManager.checkPermission(Unknown Source)
>       at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
>       at java.lang.System.getProperty(Unknown Source) 
>       at org.dom4j.DocumentFactory.<clinit>(DocumentFactory.java:51) 
>       at org.dom4j.io.SAXReader.getDocumentFactory(SAXReader.java:306) 
>       at org.dom4j.io.SAXReader.createContentHandler(SAXReader.java:468)
>       at org.dom4j.io.SAXReader.read(SAXReader.java:252)
>       at org.dom4j.io.SAXReader.read(SAXReader.java:196)
> 
> 
> Does dom4j anything what is unallowed for  Applets?

Seems like DocumentFactory is attempting to read the org.dom4j.factory
system property.  And property-reading is possibly denied in the applet
context.

I'm not certain what the correct behaviour should be.

        -bob


_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to