I'm experiencing similar (identical?) problems. What could I be doing wrong?
There is traffic between my client and the host. Looking at the packets, there is traffic from the server port 1099 to my machine. In the payload of one of the packets, I find the text "127.0.0.1". There is also mention of several class-names related to naming:
org.jnp.server.NamingServer_Stub, java.rmi.server.RemoteStub and java.rmi.server.RemoteObject
After this happens, I get a "connection refused to host 127.0.0.1"
This leads me to the conclusion that there is an issue with the configuration of my server...
But, the only configuration-file I'm able to locate
(grep -r "127.0.0.1" * ; grep -r "localhost" *) is jndi.properties, with a line saying:
# Do NOT uncomment this line as it causes in VM calls to # go over RMI!
Am I missing something?
Have a look in your host table.
You will see something like
127.0.0.1 localhost myhostname
remove the myhostname from 127.0.0.1
> Have a look in your host table.
> You will see something like
> 127.0.0.1 localhost myhostname
> xxx.xxx.xxx.xxx myhostname
> remove the myhostname from 127.0.0.1
Well, in my case, the problem was that the development server uses dynamic ip, and had a bogus hostname. But, I wouldn't have looked in that direction without your pointer.
I think this might be a FAQ...