users@glassfish.java.net

Re: Glassfish v2g on Mac 10.5 Leopard

From: <glassfish_at_javadesktop.org>
Date: Thu, 15 Nov 2007 16:00:09 PST

I tried changing the jmx-connector address attribute to 127.0.0.1 and 192.168.1.10 (My IP behind my router) but both times still had the same log output:

URL [rmi://169.254.203.185:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 169.254.203.185; nested exception is:

It is getting set though because when I run the server I get the following output to the terminal:

ALall17:glassfish Arjun$ bin/asadmin start-domain domain1
Starting Domain domain1, please wait.
Log redirected to /Users/Arjun/Dev/glassfish/domains/domain1/logs/server.log.
Redirecting output to /Users/Arjun/Dev/glassfish/domains/domain1/logs/server.log
Domain domain1 is ready to receive client requests. Additional services are being started in background.
Domain [domain1] is running [Sun Java System Application Server 9.1 (build b58g-fcs)] with its configuration and logs at: [/Users/Arjun/Dev/glassfish/domains].
Admin Console is available at [http://localhost:4848].
Use the same port [4848] for "asadmin" commands.
User web applications are available at these URLs:
[http://localhost:8080 https://localhost:8181 ].
Following web-contexts are available:
[/web1 /__wstx-services ].
Standard JMX Clients (like JConsole) can connect to JMXServiceURL:
[service:jmx:rmi:///jndi/rmi://192.168.1.10:8686/jmxrmi] for domain management purposes.
Domain listens on at least following ports for connections:
[8080 8181 4848 3700 3820 3920 8686 ].
Domain does not support application server clusters and other standalone instances.


You can see that JMX appears to be using my IP

I also tried changing all instances of 0.0.0.0 in my Domain.xml to 127.0.0.1 or 192.168.1.10, but that did not work either. Same log output trying to connect to 169.254.203.185.

But it does set the IPs as seen in the terminal output below:

ALall17:glassfish Arjun$ bin/asadmin start-domain domain1
Starting Domain domain1, please wait.
Log redirected to /Users/Arjun/Dev/glassfish/domains/domain1/logs/server.log.
Redirecting output to /Users/Arjun/Dev/glassfish/domains/domain1/logs/server.log
Domain domain1 is ready to receive client requests. Additional services are being started in background.
Domain [domain1] is running [Sun Java System Application Server 9.1 (build b58g-fcs)] with its configuration and logs at: [/Users/Arjun/Dev/glassfish/domains].
Admin Console is available at [http://192.168.1.10:4848].
Use the same port [4848] for "asadmin" commands.
User web applications are available at these URLs:
[http://192.168.1.10:8080 https://192.168.1.10:8181 ].
Following web-contexts are available:
[/web1 /__wstx-services ].
Standard JMX Clients (like JConsole) can connect to JMXServiceURL:
[service:jmx:rmi:///jndi/rmi://192.168.1.10:8686/jmxrmi] for domain management purposes.
Domain listens on at least following ports for connections:
[8080 8181 4848 3700 3820 3920 8686 ].
Domain does not support application server clusters and other standalone instances.
[Message sent by forum member 'arjunlall' (arjunlall)]

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