2011年9月15日 星期四

Glassfish: ReflectPermission suppressAccessChecks error


If you get something like on glassfish:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name '__ContractService': Initialization of bean failed; nested exception is java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)

Go to Admin console => Configurations => [target] => security 
Uncheck Security Manager.

沒有留言:

張貼留言