users@glassfish.java.net

Can't start without network

From: <glassfish_at_javadesktop.org>
Date: Mon, 09 Apr 2007 03:18:56 PDT

I have Glassfish (Sun AS 9.0_01) installed on a laptop running SuSE Linux 9.3. When the laptop is attached to a network, Glassfish starts without any problem. When the laptop is "off-line" the network isn't started and the only adapter available is "lo" (loopback). In this situation Glassfish refuses to start, with the following exception in the log:


[#|2007-04-04T17:48:11.766+0200|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;com.sun.enterprise.admin.server.core.JmxConnectorLifecycle_at_c3601b;com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://gunnar2.home:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: Exception creating connection to: gunnar2.home; nested exception is:
        java.net.SocketException: Network is unreachable];_RequestID=74962735-6fbb-490d-8781-be5127fe8e4f;|Service com.sun.enterprise.admin.server.core.JmxConnectorLifecycle_at_c3601b cannot be started! : com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://gunnar2.home:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: Exception creating connection to: gunnar2.home; nested exception is:
        java.net.SocketException: Network is unreachable]|#]


The host name "gunnar2.home" is probably picked up from "/etc/HOSTNAME" and the IP address associated with theis name is not available.

I haven't found any place where I can configure what host name the jmx connector should use. I guess that if I can change it to "localhost" I won't have a problem.

Any ideas?

TIA,
Gunnar
[Message sent by forum member 'gugrim' (gugrim)]

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