Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Re: Q about AspectJ and Java 2 security


I am running into java.security.AccessControlExceptions, when Java 2 security is turned on (for an IBM WebSphere server), with my code that uses AspectJ.

This is the stack trace:


       Caused by: java.security.AccessControlException: Access denied (java.lang.RuntimePermission getClassLoader)

                 at java.security.AccessController.checkPermission(AccessController.java:104)
                 at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
                 at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:189)
                 at java.lang.Class.getClassLoader(Class.java:234)
                 at org.aspectj.runtime.reflect.Factory.<init>(Factory.java:71)

Does anyone happen to know how to solve this problem?


Back to the top