On a multihomed Linux system (SLES9.3) I would like to bind a GF domain to a specific IP address. Now it seems I cannot get a GF domain to move over to one specific IP address for all its ports.
I try this because I want to run multiple domains next to each other on the same system for development and test reasons. Additionally I want to know how to do this on multi-homed systems in order to separate connectivity (eg for traffic and for O&M).
Preferably I do this from create-domain, but there I do not see a parameter to indicate a specific IP address. Next best is to adjust an already created domain.
The problem I face when changing the 'listen-all' IP addresses entries (0.0.0.0) in domain.xml is included below. I narrowed it down to one entry which can also be changed through the console:
Configuration -> Admin Service -> System -> JMX Connector -> Address.
When this is changed from the default 0.0.0.0 to eg 192.168.0.1 (a logical IP address I ifconfig-ed onto eth0:1 ) then this message appears in server.log:
[#|2007-06-14T16:34:58.090-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;com.sun.enterprise.admin.server.core.JmxConnectorLifecycle_at_e3010;com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://esoe061-064.etm.ericsson.se:9651/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: esoe061-064.etm.ericsson.se; nested exception is:
java.net.ConnectException: Connection refused];_RequestID=cf3930ae-cc90-480d-b3bb-bc0ba4079168;|Service com.sun.enterprise.admin.server.core.JmxConnectorLifecycle_at_e3010 cannot be started! : com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://esoe061-064.etm.ericsson.se:9651/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: esoe061-064.etm.ericsson.se; nested exception is:
java.net.ConnectException: Connection refused]|#]
And the whole thing stops.
Is this a bug ?
Why does it persist into connecting to the hostname / FQDN ?
Should I have found the howto somewhere?
I see one thread touching on the same subject:
http://forums.java.net/jive/thread.jspa?messageID=211521
Any pointers are greatly appreciated.
[Message sent by forum member 'elnfrov' (elnfrov)]
http://forums.java.net/jive/thread.jspa?messageID=222380