hi,

I have a great doubt about a Signed Applet that embed the openOffice,
this applet have a ClassLoader that find some jars files located at
openOffice instalation directory on client machine.

the grant to allow the ClassLoader to read local jars works very well,
its something like:

grant codeBase "http://mysite.com/applets/-"; {
   permission java.security.AllPermission;
}



the problem starts when a class loaded by this custom ClassLoader try
to load a library at the user local system, the code throws the java
security Exception loadLibrary.

and that is the doubt, the grant for my site dont grant the code
loaded by this custom ClassLoader? i make something wrong on this
custom ClassLoader? or i must have a grant where the codeBase, point
to local instalation of openOffice?

for reference, the line of OpenOffice source where this exception occurs is
http://go-oo.org/lxr/source/api/bean/com/sun/star/comp/beans/LocalOfficeConnection.java#110

i tried to include in the profile:

grant codeBase "file:/C:/Program Files/OpenOffice.org 2.0/program/classes/-" {
        permission java.security.AllPermission;
        permission java.lang.RuntimePermission "queuePrintJob";
        permission java.lang.RuntimePermission "loadLibrary.*";
};


the exception is:

Caused by: java.security.AccessControlException: access denied
(java.io.FilePermission C:\Program Files\OpenOffice.org
2.0\program\classes\officebean.jar 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.checkRead(Unknown Source)
        at java.io.File.isDirectory(Unknown Source)
        at 
com.sun.star.lib.util.NativeLibraryLoader.getResource(NativeLibraryLoader.java:110)
        at 
com.sun.star.lib.util.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:68)
        at 
com.sun.star.comp.beans.LocalOfficeConnection.<clinit>(LocalOfficeConnection.java:153)
        ... 22 more




Thanks for any idea

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

Reply via email to