谁知道在websphere中如何配置rmi相关的安全策略文件(policy)?

flashow
04-04-28 0 787

我rmi server端的codebase是“file:\c:\ss\”下。
然后,在客户端(websphere),我将存根(stub)放在了“file:\c:\ss\”下。
在was.policy中改为:

grant codeBase "file:${application}" {
permission java.security.AllPermission;};

grant codeBase "file:${jars}" {
permission java.security.AllPermission;
};

grant codeBase "file:${connectorComponent}" {
permission java.security.AllPermission;
};

grant codeBase "file:${webComponent}" {
permission java.security.AllPermission;
};

grant codeBase "file:${ejbComponent}" {
permission java.security.AllPermission;
};


grant codeBase "file:/c:/ss/-" {
permission java.security.AllPermission;
};

但是使用时,发生安全错误:
[04-4-28 12:25:06:810 CST] 57bd97b3 SecurityManag W SECJ0314W: 当前 Java 2 安全性策略报告了违犯 Java 2 安全性许可权的潜在可能。请参阅《问题确定指南》,获取进一步信息。

许可权:

192.168.1.108:1266 : access denied (java.net.SocketPermission 192.168.1.108:1266 connect,resolve)


代码:

com.ss.ServerTaskManager_Stub in {file:/c:/ss/}


请指教!