Hello all,

I am trying to set a java.policy file in order to allow access just for
calls from the local machine.
I use a policy file I have found on the mailing lists but having problems.
If I run the server without beans (e.j. jonas.beans.descriptors is empty )
the container runs fine with the policy file, but when I try to load beans
in startup, (jonas.beans.descriptors  ejb-jar.xml) it seems that the
container fails to read some files.

This is the policy file:
grant {


        // Access to sockets
        permission java.net.SocketPermission "localhost:1-65535",
"connect,accept,resolve,listen";
        // Access to system properties
        permission java.util.PropertyPermission "*", "read,write";
        // File system access:
        // Server installation directory and anywhere below
        permission java.io.FilePermission "${install.root}${/}-", "read,write";
        // User's home directory only and not below
        permission java.io.FilePermission "${user.home}${/}*", "read";
        // Current directory only and not below
        permission java.io.FilePermission ".${/}-", "read";

        // This is the development and jars root directory
        permission java.io.FilePermission "D://Dev//-", "read,write";
        // Access to Thread control (start/stop/etc)
        permission java.lang.RuntimePermission "modifyThread";
        permission java.lang.RuntimePermission "modifyThreadGroup";
};

I am running JOnAS 2.3 on RMI, jdk1.3 win 2k.

Am I missing something ?

Regards,

Erez

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to