Tuesday, October 10, 2006

Java Application Server PE

If you are trying to use the Flex Data Services Project Template with the Java Application Server PE you might get the following error.
Error: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
Cause: the default settings of the SUN server policy settings does not allow classloaders within webapplications.


Solution: Simply replace the policy file with one that contains the following grant entry:

edit: C:\Sun\AppServer\domains\domain1\config\server.policy

add: This towards the bottom of the policy file.
grant {
// Allow everything for now
permission java.security.AllPermission;
};

No comments: