SSLPermission

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

[432 byte] By [Jamaxa] at [2007-10-2 18:42:31]
# 1

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

Jamaxa at 2007-7-13 20:04:48 > top of Java-index,Enterprise & Remote Computing,AVK Portability...