title: Java security manager Exception
body: <p>I am working on a project using the Java Authorization and Authentication Service (JAAS). I am encountering a strange security exception though:</p>
  
  <pre><code>Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.security.util")
  </code></pre>
  
  <p>I cannot manage to understand what is the meaning of this exception. Besides, I am getting the same exception even if I grant the application all the permissions with</p>
  
  <pre><code>  permission java.security.AllPermission;
  </code></pre>