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

    SSLPermission

    843844
      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.

      Thanks
        • 1. Re: SSLPermission
          843844
          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:

          http://docs.sun.com/app/docs/doc/819-3659/6n5s6m58n?a=view#beabz

          I hope this could help to someone with the same problem