users@glassfish.java.net

Re: Eclipse Glassfish server adapter - port conflict when starting

From: heapifyman <heapifyman_at_gmail.com>
Date: Wed, 12 Nov 2008 18:26:13 +0100

Ludovic Champenois schrieb:
> glassfish_at_javadesktop.org wrote:
>> It's bad. I use only windows firewall. I dont use any proxy. I
>> disabled firewall, I retested again and the result is the same error -
>> port conflict, in the eclipse log file IOException.
>>
>
> Our options are now running low...

Hello, I just wanted to add that I tried out the new jar you posted and
attached is plugin's log output. Seems I'm getting the same IOException.
I could also access the page http://localhost:4848/__asadmin/__locations
without problems when glassfish had been started outside eclipse
(screenshot attached).


> So basically, what I know is that you have
> Win XP, correct speed and memory

I do have Win XP (SP 3), too, with Intel Core 2 Duo @ 1.86 GHz and 2 GB RAM

> (which locale, and service pack? loopback driver? Xp Firewall on (or off
> -does not matter))

Running German XP version, no loopback driver, XP Firewall is running,
but java is allowed to receive connections from my local network.

> latest Eclipse from sept 2008. Which other plugins installed? I see a
> lot of exception in Eclipse logs from other plugins...

Eclipse Ganymede with most of the official Ganymede release plugins plus
Maven, Subversive SVN Connectors, JPOX plugins, TestNG plugin, Maven
Integration, Jetty and Geronimo server adapters.

> JDK 1.6u10

dito. Glassfish is running on jdk 1.6, eclipse runs in jdk 1.5.

> GlassFish v3 Prelude (FCS or not?)

what does FCS mean?

> v3 installed in your D: drive (might be important)

Mine is in D: as well

> v3 configured with port 8180: Why not thr default 8080? How did you

I'm using the default ports.

> change that? During installation? Attaching your complete v3 server log
> and domain.xml could give more forensic info. What else is not default
> setting
> v3 fully functional outside Eclipse? Is it true (admin gui working? what
> other extension did you install?)

V3 seems to be fully functional outside eclipse and inside Netbeans.

> What else I am missing that could seem insignificant at first, but....we
> need to find a way to reproduce this on one of our machines first.

As asked before: is there information available somewhere as to how to
configure eclipse to debug the plugin?

Greetings

>
> Ludo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>



!SESSION 2008-11-12 17:44:44.825 -----------------------------------------------
eclipse.buildId=M20080911-1700
java.version=1.5.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments: 256M
Command-line arguments: -os win32 -ws win32 -arch x86 256M

!ENTRY org.eclipse.equinox.p2.director 2 0 2008-11-12 17:44:56.388
!MESSAGE Problems resolving provisioning plan.
!SUBENTRY 1 org.eclipse.equinox.p2.director 2 0 2008-11-12 17:44:56.388
!MESSAGE Unable to satisfy dependency from org.apache.geronimo.feature.feature.group 2.1.1 to requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.jst.feature.group/[2.0.0,3.0.0).
!SUBENTRY 1 org.eclipse.equinox.p2.director 2 0 2008-11-12 17:44:56.388
!MESSAGE Unable to satisfy dependency from org.apache.geronimo.v21.feature.feature.group 2.1.1 to requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.jst.feature.group/[2.0.0,3.0.0).

!ENTRY org.eclipse.ui 2 0 2008-11-12 17:46:42.655
!MESSAGE Warnings while parsing the viewer contributions from the 'org.eclipse.ui.popupMenus' extension point
!SUBENTRY 1 org.eclipse.ui 2 0 2008-11-12 17:46:42.655
!MESSAGE Viewer contributions need an id: plug-in='org.jmaki.eclipse.core'

!ENTRY org.eclipse.core.resources 4 1 2008-11-12 17:46:45.389
!MESSAGE Found nature extension with no identifier; ignoring extension.

!ENTRY org.eclipse.ui.workbench 2 0 2008-11-12 17:46:48.077
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2008-11-12 17:46:48.077
!MESSAGE Conflict for 'org.eclipse.gmf.ValidateAction':
HandlerActivation(commandId=org.eclipse.gmf.ValidateAction,
        handler=ActionDelegateHandlerProxy(null,org.eclipse.stp.sca.diagram.part.SCADiagramValidateAction),
        expression=WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow_at_19c8f45),sourcePriority=16384)
HandlerActivation(commandId=org.eclipse.gmf.ValidateAction,
        handler=ActionDelegateHandlerProxy(null,org.eclipse.stp.eid.datamodel.diagram.part.CimeroEditorValidateAction),
        expression=WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow_at_19c8f45),sourcePriority=16384)

!ENTRY org.eclipse.jface 2 0 2008-11-12 17:46:52.749
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2008-11-12 17:46:52.749
!MESSAGE A conflict occurred for CTRL+SHIFT+P:
Binding(CTRL+SHIFT+P,
        ParameterizedCommand(Command(org.eclipse.emf.search.ecore.common.ui.OpenFilteredEPackageMetaElementsSelectionDialogCommand,Open Filtered Ecore Package Meta-Elements Dialog,
                Open Filtered Ecore Package Meta-Elements Dialog,
                Category(org.eclipse.modeling.editors,Modeling Editors,Modeling Editors Commands,true),
                org.eclipse.emf.search.ecore.common.ui.handlers.OpenFilteredEPackageMetaElementSelectionDialogHandler,
                ,,true),null),
        org.eclipse.ui.defaultAcceleratorConfiguration,
        org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+SHIFT+P,
        ParameterizedCommand(Command(org.eclipse.ecf.presence.ui.commands.browse,Open Contact,
                ,
                Category(org.eclipse.ecf.ui.commands.category,Communications,null,true),
                org.eclipse.ecf.internal.presence.ui.handlers.BrowseHandler,
                ,,true),null),
        org.eclipse.ui.defaultAcceleratorConfiguration,
        org.eclipse.ui.contexts.window,,,system)
!SUBENTRY 1 org.eclipse.jface 2 0 2008-11-12 17:46:52.749
!MESSAGE A conflict occurred for ALT+SHIFT+D R:
Binding(ALT+SHIFT+D R,
        ParameterizedCommand(Command(org.eclipse.rap.ui.launch.RAPLaunchShortcut.debug,Debug RAP Application,
                Debug RAP Application,
                Category(org.eclipse.debug.ui.category.run,Run/Debug,Run/Debug command category,true),
                ,
                ,,true),null),
        org.eclipse.ui.defaultAcceleratorConfiguration,
        org.eclipse.ui.contexts.window,,,system)
Binding(ALT+SHIFT+D R,
        ParameterizedCommand(Command(org.eclipse.wst.server.launchShortcut.debug,Debug on Server,
                Debug the current selection on a server,
                Category(org.eclipse.debug.ui.category.run,Run/Debug,Run/Debug command category,true),
                ,
                ,,true),null),
        org.eclipse.ui.defaultAcceleratorConfiguration,
        org.eclipse.ui.contexts.window,,,system)
!SUBENTRY 1 org.eclipse.jface 2 0 2008-11-12 17:46:52.749
!MESSAGE A conflict occurred for ALT+SHIFT+X R:
Binding(ALT+SHIFT+X R,
        ParameterizedCommand(Command(org.eclipse.rap.ui.launch.RAPLaunchShortcut.run,Run RAP Application,
                Run RAP Application,
                Category(org.eclipse.debug.ui.category.run,Run/Debug,Run/Debug command category,true),
                ,
                ,,true),null),
        org.eclipse.ui.defaultAcceleratorConfiguration,
        org.eclipse.ui.contexts.window,,,system)
Binding(ALT+SHIFT+X R,
        ParameterizedCommand(Command(org.eclipse.wst.server.launchShortcut.run,Run on Server,
                Run the current selection on a server,
                Category(org.eclipse.debug.ui.category.run,Run/Debug,Run/Debug command category,true),
                ,
                ,,true),null),
        org.eclipse.ui.defaultAcceleratorConfiguration,
        org.eclipse.ui.contexts.window,,,system)

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.139
!MESSAGE GlassFish: in SunAppServer CTOR

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.139
!MESSAGE GlassFish: in SunAppServer initializeGlassFish v3 Prelude at localhost

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.155
!MESSAGE GlassFish: in SunAppServer SunInitialize domain isD:/Programme/Development/glassfishv3-prelude/glassfish/domains

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.342
!MESSAGE GlassFish: PORT is 8080

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.342
!MESSAGE GlassFish: secure false

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.342
!MESSAGE GlassFish: Adding { http-listener-1, 8080, false }

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.342
!MESSAGE GlassFish: PORT is 8181

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.342
!MESSAGE GlassFish: secure true

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.342
!MESSAGE GlassFish: http-listener http-listener-2 is not enabled and won't be used.

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.342
!MESSAGE GlassFish: PORT is 4848

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.342
!MESSAGE GlassFish: secure false

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.358
!MESSAGE GlassFish: Adding { admin-listener, 4848, false }

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.358
!MESSAGE GlassFish: JMX Port is 8686

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.483
!MESSAGE GlassFish: reading from domain.xml adminServerPortNumber=4848

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.483
!MESSAGE GlassFish: reading from domain.xml serverPortNumber=8080

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.483
!MESSAGE GlassFish: in SunAppServer initialize done readServerConfiguration

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.561
!MESSAGE GlassFish: in SunAppServerBehaviour initialize

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:00.921
!MESSAGE GlassFish: in SunAppServerBehaviour initialize is running!!

!ENTRY com.sun.enterprise.jst.server.sunappsrv 4 1 2008-11-12 17:47:02.264
!MESSAGE GlassFish: Command Runner: IOException
!STACK 0
java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.Socket.connect(Socket.java:520)
        at java.net.Socket.connect(Socket.java:470)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
        at sun.net.www.http.HttpClient.New(HttpClient.java:304)
        at sun.net.www.http.HttpClient.New(HttpClient.java:321)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
        at com.sun.enterprise.jst.server.sunappsrv.commands.CommandRunner.call(CommandRunner.java:316)
        at com.sun.enterprise.jst.server.sunappsrv.commands.CommandRunner.call(CommandRunner.java:1)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:02.264
!MESSAGE GlassFish: In BasicTask, Operation failed err=MSG_Exception

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:02.264
!MESSAGE GlassFish: done executing: false __locations

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:02.264
!MESSAGE GlassFish: In BasicTask, Operation failed err=MSG_ServerCmdFailed

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:02.264
!MESSAGE GlassFish: apparently CREDENTIAL_ERROR

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 17:47:02.264
!MESSAGE GlassFish: in SunAppServerBehaviour initialize STOP by Default...

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 18:06:26.076
!MESSAGE GlassFish: in SUN SunAppServerLaunch launch

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 18:06:26.076
!MESSAGE GlassFish: in SUN SunAppServerLaunch Forcing a STOP!!!!

!ENTRY com.sun.enterprise.jst.server.sunappsrv 4 1 2008-11-12 18:06:27.060
!MESSAGE GlassFish: Command Runner: IOException
!STACK 0
java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.Socket.connect(Socket.java:520)
        at java.net.Socket.connect(Socket.java:470)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
        at sun.net.www.http.HttpClient.New(HttpClient.java:304)
        at sun.net.www.http.HttpClient.New(HttpClient.java:321)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
        at com.sun.enterprise.jst.server.sunappsrv.commands.CommandRunner.call(CommandRunner.java:316)
        at com.sun.enterprise.jst.server.sunappsrv.commands.CommandRunner.call(CommandRunner.java:1)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 18:06:27.060
!MESSAGE GlassFish: In BasicTask, Operation failed err=MSG_Exception

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 18:06:27.060
!MESSAGE GlassFish: done executing: false __locations

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 18:06:27.060
!MESSAGE GlassFish: In BasicTask, Operation failed err=MSG_ServerCmdFailed

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-12 18:06:27.060
!MESSAGE GlassFish: apparently CREDENTIAL_ERROR

!ENTRY org.eclipse.wst.server.core 4 0 2008-11-12 18:06:27.076
!MESSAGE Error starting server GlassFish v3 Prelude at localhost
!STACK 1
org.eclipse.core.runtime.CoreException: Port conflict: Please stop the server process using the same port as the one used by the Application Server.
        at com.sun.enterprise.jst.server.sunappsrv.SunAppServerLaunch.abort(SunAppServerLaunch.java:72)
        at com.sun.enterprise.jst.server.sunappsrv.SunAppServerLaunch.launch(SunAppServerLaunch.java:124)
        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)
Caused by: 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)
        ... 7 more
!SUBENTRY 1 com.sun.enterprise.jst.server.sunappsrv 4 150 2008-11-12 18:06:27.076
!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)

!ENTRY com.sun.enterprise.jst.server.sunappsrv 4 150 2008-11-12 18:06:27.076
!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)





picture
(image/png attachment: 02-part)