Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Application Servers > SunOne 7.0
Added by Patrick Lightbody, last edited by Ted Husted on Sep 03, 2006  (view change) show comment

To use SunOne wkith the framework, you will need to grant the appropriate permissions. You can simply grant all permissions, or just the specific permissions the framework needs.

Granting All Permissions

grant {
	permission java.security.AllPermission;
};

Granting Specific Permissions

  • Grant Write Permissions to java.util.PropertyPermission
  • Add java.lang.reflect.ReflectPermission "suppressAccessChecks"
  • Grant all permissions to OgnlInvokePermission
grant {
	permission java.util.PropertyPermission "*", "read, write";
	permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
	permission ognl.OgnlInvokePermission "*";
};