日期:2014-05-16 浏览次数:20999 次
在Sun Java System Application Server (8.2)版本 会发生
java.security.AccessControlException
解决办法
进入/config目录 修改 server.policy 文件 增加
grant codeBase "file:${com.sun.aas.instanceRoot}/applications/J2EE-modules/jreport/-"{
??? ?permission java.util.PropertyPermission "*", "read,write";
??? ?permission?? java.security.AllPermission "*", "read,write";
};
注意:jreport 问要部署的war包
or
grant{
??? ?permission java.util.PropertyPermission "*", "read,write";
??? ?permission?? java.security.AllPermission "*", "read,write";
};