users@glassfish.java.net

ServerLifecycleException: Cannot bind to URL

From: <glassfish_at_javadesktop.org>
Date: Tue, 02 Dec 2008 20:30:46 PST

I am new to Glassfish.

Environment: Ubuntu, Java 1.5
I got following error message while starting server
-------------------------------------------
[i][#|2008-12-02T08:03:59.626-0500|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=600cb745-9b1a-4c1e-9d80-3570a5102882;|CORE5071: An error occured during initialization
com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://ubuntu:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: Exception creating connection to: ubuntu; nested exception is:
        java.net.NoRouteToHostException: No route to host][/i]
-----------------------------------------------
I was not able to change the server name in rmi://ubuntu:8686/management/rmi-jmx-connector.
domain.xml as follows
---------------------------------------------
[i]<admin-service system-jmx-connector-name="system" type="das-and-server">
            <!-- The JSR 160 "system-jmx-connector" -->
            <jmx-connector accept-all="false" address="localhost" auth-realm-name="admin-realm" enabled="true" name="system" port="8686" protocol="rmi_jrmp" security-enabled="false"/>
            <!-- The JSR 160 "system-jmx-connector" -->
            <!--das-config dynamic-reload-enabled="true" dynamic-reload-poll-interval-in-seconds="2" autodeploy-enabled="true" autodeploy-polling-interval-in-seconds="2" autodeploy-dir="${com.sun.aas.instanceRoot}/autodeploy" autodeploy-verifier-Enabled="false" autodeploy-jsp-precompilation-enabled="false" deploy-xml-validation="full" admin-session-timeout-in-minutes="60" /-->
          </admin-service>
.
.
.
<!-- ALSO ADDED FOLLOWING LINE BY REFERING FORUM -->
<java-config .....>
<jvm-options>-Djava.rmi.server.hostname=localhost</jvm-options>[/i]
---------------------------------------------
I could not able to find any place where server name is set like "ubuntu" in my installation locations (/home/user/glassfish/domain1 AND /usr/share/sunappserver/)

Could some one help me..
Thank you
[Message sent by forum member 'susith' (susith)]

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