Search Flex Components Free

Custom Search

December 17, 2007

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;
};

Related Flex Tutorials