users@glassfish.java.net

Re: Glassfish 2.0 ur2 b04 on Ubuntu - rmi - Connection refused to host

From: <glassfish_at_javadesktop.org>
Date: Mon, 17 Nov 2008 18:06:51 PST

So far, not so good ...

Despite adding these two line to domain.xml below
     <!-- various required jvm-options -->
    <jvm-options>-Djava.rmi.server.hostname=192.168.1.44</jvm-options>
    <jvm-options>-Dsun.rmi.transport.tcp.localHostnameTimeOut=3000</jvm-options>
and those directives appearing correctly in the log:
-Djava.rmi.server.hostname=192.168.1.44
-Dsun.rmi.transport.tcp.localHostnameTimeOut=3000

I get the same error in the same place:

[#|2008-11-17T20:22:50.864-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;com.sun.enterprise.admin.server.core.JmxConnectorLifecycle_at_b124fa;com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://my.server.net:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: Exception creating connection to: my.server.net; nested exception is:
        java.net.NoRouteToHostException: No route to host];_RequestID=c9606128-32c3-46b8-81de-2585a781d0cc;|Service com.sun.enterprise.admin.server.core.JmxConnectorLifecycle_at_b124fa cannot be started! : com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://my.server.net:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: Exception creating connection to: my.server.net; nested exception is:
        java.net.NoRouteToHostException: No route to host]|#]
[Message sent by forum member 'not_mel' (not_mel)]

http://forums.java.net/jive/thread.jspa?messageID=317167