How can I debug the Java 2 security exceptions and AccessControlExceptions?
There are two primary aids, the WebSphere SystemOut.log file and the com.ibm.websphere.java2secman.norethrow property.The AccessControlException logged in the SystemOut.log file contains the permission violation that causes the exception, the exception call stack, and the permissions granted to each stack frame. This information is usually enough to determine the missing permission and the code requiring the permission. When Java 2 security is enabled in WebSphere Application Server, the security manager component throws a java.security.AccessControl exception when a permission violation occurs. This exception, if not handled, often causes a run time failure. This exception is also logged in the SystemOut.log file. However, when the JVM com.ibm.websphere.java2secman.norethrow property is set and has a value of true, the security manager does not throw the AccessControl exception. This information is logged. To set the com.ibm.websphere.java2secman.norethrow property for the server, go