users@glassfish.java.net

Re: Glassfish v2, Eclipse and OS X Leopard

From: <glassfish_at_javadesktop.org>
Date: Tue, 10 Feb 2009 15:49:20 PST

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!

-ashley
[Message sent by forum member 'abnovak' (abnovak)]

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