users@glassfish.java.net

Re: How to bind the Application server to IP Address

From: <glassfish_at_javadesktop.org>
Date: Tue, 15 Jan 2008 21:01:59 PST

There are two issues to report when changes are done to domain.xml

1. changing the IP Address to the desired IP address is causing the application to fail as it tries to bind throwing the following error

com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://localhost:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
        java.net.ConnectException: Connection refused]

2. Changing the values back to 0.0.0.0 creates port conflict (as anticipated).

Similarly the JMS Ports also throw conflicts.

Is there any other way we can achieve the behaviour without changing the domain.xml file? For example the JBoss application server has bind variable as one of the parameters to the start script it self. Is there an equivalent to that in Glassfish?

Regards,
U
[Message sent by forum member 'u200801' (u200801)]

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