Hi,

On 9/19/06, Vikas Bhatia <[EMAIL PROTECTED]> wrote:
On 9/19/06, Vikas Bhatia <[EMAIL PROTECTED]> wrote:
> I am trying to login to a remote repository using a rmi client. I know
> that port 1099 on the remote machine is accepting connection and there are
> no firewall issues but my code fails at
> session = repository.login (credentials, "testrep");
> [...]
> It seems that the client is trying to connect to the local machine for
> some reason.
> On debugging this is what I see in the ServerRepository_Stub remote
> instance "ServerRepository_Stub[UnicastRef [liveRef: [endpoint:[
> 127.0.0.1:51964](remote),objID:[-306a124b:10dc6b3cde5:-8000, 0]]]]"
>
> So the remote repository is getting bound to 127.0.0.1. Is this a bug or
> am I missing something?
[...]
The same everything worked fine on a separate WinXP server box. So if there
are any linux firewall/port blocking/port releasing gurus here, tips
appreciated.

This is most likely not a firewall issue, but a failure of your JVM to
get the correct hostname or IP address of the server. You can force
the server JVM to use a specific hostname or IP address instead of the
default 127.0.0.1 by using the "java.rmi.server.hostname" system
property. See 
http://java.sun.com/j2se/1.4.2/docs/guide/rmi/javarmiproperties.html
for the details.

BR,

Jukka Zitting

--
Yukatan - http://yukatan.fi/ - [EMAIL PROTECTED]
Software craftsmanship, JCR consulting, and Java development

Reply via email to