Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Problem Accessing rmiregistry Through Tomcat

  Asked By: Adelisa    Date: Apr 10    Category: Java    Views: 1172
  

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";

}

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Agatha Miller     Answered On: Apr 10

Sign the applet  container jar file, fore more information
java.sun.com/.../signing.html

a signed jar file  appears with a Grant Permission Dialog, and if you do not set any specific policy  in security policy file for your jar file, it grants all resources of the client  computer.

 
Didn't find what you were looking for? Find more on Problem Accessing rmiregistry Through Tomcat Or get search suggestion and latest updates.




Tagged: