You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by Trung Hoang <th...@mail.usyd.edu.au> on 2003/11/07 03:13:19 UTC

Access permissions

Hello!

Im executing a XMLRPC call in a servlet. And i get this error in the
catalina.out file...

java.security.AccessControlException: access denied
(java.util.PropertyPermission org.apache.xmlrpc.TypeFactory read)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:270)
        at
java.security.AccessController.checkPermission(AccessController.java:401)
        at
java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
        at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1291)
        at java.lang.System.getProperty(System.java:572)
        at org.apache.xmlrpc.XmlRpc.<init>(XmlRpc.java:200)
        at
org.apache.xmlrpc.XmlRpcClient$Worker.<init>(XmlRpcClient.java:325)
        at org.apache.xmlrpc.XmlRpcClient.getWorker(XmlRpcClient.java:234)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:160)

In my catalina.policy file i have:

grant codeBase "file:/home/virtual/site27/fst/var/www/html/-" {
        permission java.net.SocketPermission
"localhost:3306","connect,resolve";
        permission java.util.PropertyPermission "*", "read";
        permission java.util.PropertyPermission
"org.apache.xmlrpc.TypeFactory", "read";
};

The codebase corresponds to the context in which holds my WEB-INF/classes
and WEB-INF/lib


What am i doing wrong? i've tried:
grant {
        permission java.util.PropertyPermission
"org.apache.xmlrpc.TypeFactory", "read";
         permission java.security.AllPermission;
}

even but it still fails.

Please help