users@glassfish.java.net

RE: Port error during startup

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Sat, 3 Oct 2009 18:50:38 -0400

Wes
try

$GF_HOME/bin/asadmin list-jndi-resources

?
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Sat, 3 Oct 2009 15:43:45 -0700
> From: glassfish_at_javadesktop.org
> To: users_at_glassfish.dev.java.net
> Subject: Port error during startup
>
> I get the following error when trying to start Glassfish 2.1:
>
> [code]
> java.net.ConnectException: Operation timed out];_RequestID=43d9fc74-34c2-43ae-a7b9-43827f4573a5;|Service com.sun.enterprise.admin.server.core.JmxConnectorLifecycle_at_734bcb5c cannot be started! : com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://wesley-bakers-macbook-pro.local:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: wesley-bakers-macbook-pro.local; nested exception is:
> java.net.ConnectException: Operation timed out]
> CORE5071: An error occured during initialization
> com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://wesley-bakers-macbook-pro.local:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: wesley-bakers-macbook-pro.local; nested exception is:
> java.net.ConnectException: Operation timed out]
> at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onStartup(JmxConnectorLifecycle.java:153)
> at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:446)
> at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:134)
> at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
> at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
> Caused by: java.io.IOException: Cannot bind to URL [rmi://wesley-bakers-macbook-pro.local:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: wesley-bakers-macbook-pro.local; nested exception is:
> java.net.ConnectException: Operation timed out]
> at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
> at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
> at com.sun.enterprise.admin.jmx.remote.server.rmi.JmxConnectorServerDriver.startConnectorServer(JmxConnectorServerDriver.java:240)
> at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onStartup(JmxConnectorLifecycle.java:134)
> ... 9 more
> [/code]
>
> It appears that something is blocking or already using the 8686 port, but when I do a netstat -na | grep LISTEN, I get the following lines during startup (they do not appear before startup or after the error):
>
> [code]
> tcp46 0 0 *.52721 *.* LISTEN
> tcp46 0 0 *.8686 *.* LISTEN
> tcp46 0 0 *.3920 *.* LISTEN
> tcp46 0 0 *.3820 *.* LISTEN
> tcp46 0 0 *.3700 *.* LISTEN
> [/code]
>
> so why is Glassfish not able to connect to 8686, even though it is obviously open? I even tried to telnet to it during startup and it connected fine.
> [Message sent by forum member 'malakh' (malakhshaket_at_gmail.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=366676
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
                                                _________________________________________________________________ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141665/direct/01/