users@glassfish.java.net

I need to bind GlassFish to a specific IP address. Help requested.

From: <forums_at_java.net>
Date: Mon, 6 Feb 2012 23:09:54 -0600 (CST)

 I need to bind my installation of GlassFish to a specific IP address for
GlassFish to work, due to our Firewall rules. The IP address is
192.168.100.184.

I was able to achieve this via the command line using :

asadmin set configs.config.server-config.network-config.
network-listeners.network-listener.http-listener-1.address=192.168.100.184

(I got the instruction on how to do this from this blog:
http://trmueller.wordpress.com/2010/08/27/glassfish-3-1-on-a-multihomed-server/)

 

I restarted GlassFish and checked from the admin console and
network-listener-1 was listening on the IP address: 192.168.100.184.

 

But from the server.log file, I am able to see that admin listener and
something called Grizzly Framework is bounding to  0.0.0.0

 

and the line
"service:jmx:rmi://mydomain.com:8686/jndi/rmi://mydomain.com:8686/jmxrmi|#]"
shows that the RMI service (?) is bonding to the IP address of my domain
name, which is not even part of the infrastructure of my current host.

 

How can I get set all the appropriate listeners to bond to 192.168.100.184?

 

Can someone share an domain.xml of GlassFish 3.1.1 (build 12) for Linux (I
installed mine on a RHE 5 Linux) with the appropriate modifications?

 

Here are some of the problematic sections I have been able to spot in the
server.log file.

 

 

--------------------------------------------------------problematic sections
spotted in server.log---------------------------

 

 

 

service:jmx:rmi://mydomain.com:8686/jndi/rmi://mydomain.com:8686/jmxrmi|#]

 

0600|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-2;|WEB0169:
Created HTTP listener [admin-listener] on host/port [0.0.0.0:4848]|#]

 

 

 

[#|2012-02-06T21:13:57.308-0600|SEVERE|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=Thread-2;|CORE10012:
Application previously deployed is not at its original location any more:
file:/usr/glassfish/glassfish/domains/domain1//applications/cepm/|#]

 

 

[#|2012-02-06T21:13:57.048-0600|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=32;_ThreadName=Thread-2;|Grizzly
Framework 1.9.36 started in: 77ms - bound to [0.0.0.0:3700]|#]

 

[#|2012-02-06T21:13:57.048-0600|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=29;_ThreadName=Thread-2;|Grizzly
Framework 1.9.36 started in: 101ms - bound to [0.0.0.0:8181]|#]

 

[#|2012-02-06T21:13:57.048-0600|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=31;_ThreadName=Thread-2;|Grizzly
Framework 1.9.36 started in: 139ms - bound to [192.168.100.184:8080]|#]

 

[#|2012-02-06T21:13:57.048-0600|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=33;_ThreadName=Thread-2;|Grizzly
Framework 1.9.36 started in: 91ms - bound to [0.0.0.0:4848]|#]

 

 

[#|2012-02-06T21:13:57.048-0600|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=30;_ThreadName=Thread-2;|Grizzly
Framework 1.9.36 started in: 65ms - bound to [0.0.0.0:7676]|#]

 

 

--------------------------------------------------------end of
server.log----------------------------------------------------------

 Thanks.

 


--
[Message sent by forum member 'redhat19']
View Post: http://forums.java.net/node/883324