1 Reply Latest reply: Jun 9, 2006 4:08 AM by 843844 RSS


      Hello everybody,

      The application I am working on works OK on Tomcat, but when I try to deploy it on Sun AS (platform and enterprise edition) I get the following exception:

      javax.servlet.ServletException: access denied (javax.net.ssl.SSLPermission setHostnameVerifier)

      I suppose I should grant some kind of access to my application, but I have no idea how to do that.
      Any help is welcome.

        • 1. Re: SSLPermission
          I found the solution to this problem :-) I hope it will be usefull to the people who have the same problem.
          The server.policy file should contain the following entry
          grant codeBase "file:${com.sun.aas.instanceRoot}/applications/j2ee-apps/MyApp/-" {
            permission javax.net.ssl.SSLPermission "setHostnameVerifier";
          like described here:


          I hope this could help to someone with the same problem