I have been using glassfish for a few months on my mac running 10.4 Tiger with no problems.
Just yesterday I did up upgrade install to Leopard on my machine. After discovering problems starting glassfish after the upgrade I removed my old glassfish install (actually just renamed the directory) and installed glassfish fresh.
The new, clean version of glassfish still would not start properly. However, I discovered that when I am plugged into ethernet on en0 it will work. (When I am not plugged in my computer runs off wireless on en1.)
The culprit seems to be that glassfish thinks my local ip is a 169.254.x.x IP when my ethernet is disconnected even though I have a valid IP on wireless. When its plugged in it resolves my IP without a problem.
1) Is this a bug in glassfish or Leopard?
2) Why doesnt glassfish use localhost?
3) Can I change glassfish to use localhost by default, or change which interface it gets the ip from?
Here is a snippet from my log the seems to pinpoint the problem (I will post my full log in a reply):
"Cannot bind to URL [rmi://169.254.161.207:8686/management/rmi-jmx-connector]"
the full line:
[#|2007-10-29T15:28:48.086-0400|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10; _ThreadName=main;com.sun.enterprise.admin.server.core.JmxConnectorLifecycle_at_328cbf;com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://169.254.161.207:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 169.254.161.207; nested exception is:
java.net.ConnectException: Operation timed out];_RequestID=69db80be-8146-46bb-a879-157fedee2f87;|Service com.sun.enterprise.admin.server.core.JmxConnectorLifecycle_at_328cbf cannot be started! : com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://169.254.161.207:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 169.254.161.207; nested exception is:
java.net.ConnectException: Operation timed out]|#]
Any help would be thoroughly appreciated.
[Message sent by forum member 'arjunlall' (arjunlall)]
http://forums.java.net/jive/thread.jspa?messageID=242754