users@glassfish.java.net

Re: Glassfish v2g on Mac 10.5 Leopard

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 29 Oct 2007 16:20:55 -0400

Hi,

I'm just curious. If you add, in domain.xml,

<jvm-options>-Dcom.sun.enterprise.server.ss.ASQuickStartup=false</jvm-options>

Does it make a difference?

glassfish_at_javadesktop.org wrote:
> 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?

yes you can edit (or use admin gui) the listener's address (in your case
the jmx-connector) attribute and put your ip directly. As an example,
the http-listener looks like:

> <http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" i
> d="http-listener-1" port="8080" security-enabled="false" server-name="" xpowered-by="true">

the jmx connector looks like:

> <jmx-connector accept-all="false" address="0.0.0.0" auth-realm-name="admin-realm" enabled="true" name="system" port="8686" protocol="rmi_jrmp
> " security-enabled="false">

Hope that help.

-- Jeanfrancois

>
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>