Re: Problem when starting remote rmiregistry service using ssh

Gregg Wonderly <[email protected]> Sun, 7 Oct 2007 00:15:30 -0500
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
Qiang Wei wrote:
>  The exceptions actually appeared from both. When I found "$ ssh
> 192.168.1.1"rmiregistry &"" didn't work, I tried starting it first
> locally and running
> my app using "$ ssh 192.168.1.1 "java myservice &"", but the same exceptions
> appear.

Check the output of the 'hostname' command vs your DNS configuration and the
contents of the /etc/hosts file to make sure your local host name makes sense
and that the machine is correctly configured.  There is a long standing issue
with many linux distros about not getting a correct IP address and host name
mapping in place up front.  This seldom makes a difference for "client" types of
linux installs.  But it is vital for RMI to be able to make sense of the network
configuration.

Gregg Wonderly

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html