users@glassfish.java.net

Eclipse Glassfish server adapter - port conflict when starting glassfish

From: heapifyman <heapifyman_at_gmail.com>
Date: Mon, 10 Nov 2008 14:40:16 +0100

Hello all.

Whenever I try to start glassfish v3 prelude via the server adapter
within eclipse I get the error message:
"Please stop the server process using the same port as the one used by
the Application Server.
A server process is already running on this port but we cannot
determined if it's a GlassFish process (lack of info or credentials)"

Unfortunately, it does not tell which port is blocked by "a server
process" so I am unable to hunt down that blocking process. And the
obvious candidates like 4848 or 8080 are not blocked according to TCP View.

Anyone havong the same problem? How can I find out which ports are needed?

Thanks in advance for any hints.

P.S.:
This happens with Server Adapter 1.0.14, Eclipse 3.4, JDK 1.5.0_16 and
JDK 1.6.0_10 on a Windows XP Pro SP3 machine.
Below is the stack trace from the log:

!ENTRY com.sun.enterprise.jst.server.sunappsrv 4 150 2008-11-10 14:23:43.747
!MESSAGE Port conflict: Please stop the server process using the same
port as the one used by the Application Server.
!STACK 0
java.lang.RuntimeException: A server process is already running on this
port but we cannot determined if it's a GlassFish process (lack of info
or credentials)
        at
com.sun.enterprise.jst.server.sunappsrv.SunAppServerLaunch.launch(SunAppServerLaunch.java:126)
        at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:764)
        at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:614)
        at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:607)
        at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:2771)
        at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:2721)
        at
org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:306)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)