I have an applet which uses rmi for some services it needs. The applet runs fine on any client by running rmiregistry and then opening applet HTML file on browser, but when I try to run it through Tomcat I get an error on socket permissions:
java.net.SocketPermission [serverip]:[port] connect , resolve
I also garnted these permissions on catalina.policy file of Tomcat as below:
grant {
permission java.net.SocketPermission, "localhost:[port]", "connect,resolve";
}