You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ben Deany <Be...@lasata.com.au> on 2002/11/27 04:26:31 UTC

Apache Tomcat 4.1 and RMI

Hi everyone,

I am using WebSphere to develop an enterprise application. To this end I
have a servlet which serves up a page that contains an applet. Tomcat
4.1 is my application server and I have it installed on my machine
successfully (my OS is Windows XP). The servlet's init() method creates
an RMI registry on port 1099 that holds an instance of an engine that I
want to make calls to. That works fine.

However, when the applet is downloaded and starts executing I get a
SocketPermissions exception "connection refused" (which I can see in my
plug-in console). This is caused by a call to the "Naming.lookup()"
method in the applet's "init()" method. I gather that I have not set up
my Java plug-in/Tomcat security policy files correctly. I tried adding
this to the catalina.plicy file, but with no luck:

grant codeBase= "file:${catalina.home}/webapps/salerio/-" {
    permission java.net.SocketPermission "localhost:1099",
"accept,connect,listen";
};

Actually, this is my first post, but I just had an e-mail through from
this list about Tomcat and RMI. Is this a popular subject? If so, is
there any documentation that could help me address this issue?

Thanks in advance,

Kind regards,
Ben Deany
Software Developer - Lasata Pty Ltd