tomcat server安全策略

 将以下内容拷贝到appserver
*****************************************************
grant {
   // Permission for allowing Hibernate read/write from it's configuration files.
   permission java.util.PropertyPermission "*", "read,write";

   // Permission for cglib part of Hibernate framework
   permission java.lang.RuntimePermission "getProtectionDomain";
   permission java.lang.reflect.ReflectPermission "suppressAccessChecks";

   // Permissions to get Apache Axis to work
   permission java.lang.RuntimePermission "createClassLoader";
   permission java.lang.RuntimePermission "getClassLoader";
};

grant codeBase "file:${com.sun.aas.installRoot}/domains/domain1/applications/j2ee-modules/-" {
   permission java.security.AllPermission;
};

grant {
   permission java.security.AllPermission;
};

grant {
   permission java.io.FilePermission "<<ALL FILES>>", "read,write,execute";
};

你可能感兴趣的:(apache,tomcat,Hibernate,server,File,permissions)