File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes Problem with servlet connecting RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Problem with servlet connecting RMI" Watch "Problem with servlet connecting RMI" New topic

Problem with servlet connecting RMI

Chandan Phukan

Joined: Jan 10, 2007
Posts: 3
I am having a peculiar problem..

I have a Server written in RMI and I am able to connect to the RMI server through a servlet provided I have to start the rmiregistry manually. But if I start the rmiregistry programatically I am unable to connect the sevlet to the rmi server.(I use my own port to start the registry)

I have also given grant permission in the catalina.policy file as well as start tomcat with -security option, but its of no use.

One interesting fact is that the same program , if a try to connect the rmi server with a normal client, the code works fine. Like if I try with a console based client it works fine, the client able to connect the rmi server.

I am using AIX box.

any idea,help will be highly appreciated.
Mr. C Lamont Gilbert
Ranch Hand

Joined: Oct 05, 2001
Posts: 1170

So you cant make remote connections? Only local ones?
subject: Problem with servlet connecting RMI