[EMAIL PROTECTED] wrote:
> I have been attempting to get an RMI Client and Server to run using
> 2 Linux boxes running Red Had 6.1 (one dual boots 95). The Client
> and Server are "textbook" examples.
>
> I have run them succesuffly on Win95, WinNT and Solaris
> networks. When I run both on the same linux machine, it works. In
> addition, when I run the Server on the Win95 box and the Client on
> the Linux box the program works but when the Server is on the Linux box I
> get the same error message that I get when the client is on one linux box
> and the server is on another:
>
> java.rmi.ConnectException: Connection refused to host: 127.0.0.1;
> nested exception is: java.net.ConnectException: Connection
> refused.net.ConnectException: Connection refused at
> My questions are
> 1) Has anyone EVER gotten RMI to work properly between multiple
> linux machines? If my analysis is correct, it should never work.
RMI on Linux works fine.
>
> 2)Is there something I could do on the Server side to get it to return the
> correct address 192.168.0.2 to the client?
I suspect you don't have an RMIRegistry on Linux - I can produce an identical
stack trace by running an RMI client app and pointing it at an RMI Registry
that isn't running.
Choose one of your Linux boxes to act as your RMIRegistry and then start the
registry in the background via:
rmiregistry &
Also make sure that your server's bind() call and client's lookup() call are
pointing at the same registry ('rmi://registryHostName/yourObjectBoundName' if
your using URL style.)
--
David Marshall email: [EMAIL PROTECTED]
VM Systems, Inc. phone: 1-941-596-2480
Naples, FL USA fax: 1-941-596-2483
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]