ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trung Hoang" <thoa0...@mail.usyd.edu.au>
Subject Access permissions
Date Fri, 07 Nov 2003 02:13:19 GMT
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


Mime
View raw message