users@glassfish.java.net

Re: Glassfish v2, Eclipse and OS X Leopard

From: Ludovic Champenois <Ludovic.Champenois_at_Sun.COM>
Date: Tue, 10 Feb 2009 16:20:40 -0800

glassfish_at_javadesktop.org wrote:
> Hi Ludo,
>
> When I keep it I receive error messages in the log about the JMX not starting. This is a portion of the error console:
>
> java.net.ConnectException: Connection refused];_RequestID=1df0743f-dadb-4d0f-9c44-09a1d5791860;|Service com.sun.enterprise.admin.server.core.JmxConnectorLifecycle_at_207487 cannot be started! : com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://triathlon:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: triathlon; nested exception is:
> java.net.ConnectException: Connection refused]|#]
>
> So I disabled the JMX. And this allowed the server to run without eclipse work.
>
> I'm assuming that eclipse uses the jmx functionality to deploy with the server.
>
> But, the good news is that I've found a solution! I've edited my /etc/hosts file and directed localhost to go to my static ip address on the top line as opposed to localhost or 127.0.0.1. This causes the jmx to bind properly & gives me the ability to run on server in eclipse. Obviously this isn't completely ideal due to the fact that if my ip address ever needs to be changed, then I have to remember to update my /etc/hosts file; yikes!
>
>

Nice. Another possible way would be to edit the domain.xml of the
GlassFish domain and search for "triathlon"...If there, replace with
fully qualified name (host and domain) or the ip address...
Or fix your network setup (can be more complicated than saying it...)


Ludo
> -ashley
> [Message sent by forum member 'abnovak' (abnovak)]
>
> http://forums.java.net/jive/thread.jspa?messageID=331161
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>