users@glassfish.java.net

Re: Eclipse Glassfish server adapter - port conflict when starting glassfish

From: heapifyman <heapifyman_at_gmail.com>
Date: Mon, 10 Nov 2008 19:31:37 +0100

Ludovic Champenois schrieb:
> heapifyman wrote:
>> 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.
>>
>>
> Did you install v3 with a username/password?

No, I didn't.

> 1/ If yes, double click on the server node to open the server prop
> editor, enter the correct name/password (uncheck the use anonymous
> chexkbox).
> 2/ if this does not work, try to start the server outside Eclipse via
> CLI to see if it can start or not (maybe a firewall network issue)

"asadmin start-domain" in the console starts the server successfully and
I can access the administration web app without giving a username or
password.

> 3/ if nothing works, enable the plugin info loging via the GlassFish
> Preferences (one node in the Eclipse Preferences), restart Eclipse, try
> to start the server, then send me the Eclipse log file.

This is the output when enabling logging:

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-10 19:25:39.253
!MESSAGE GlassFish: in SUN SunAppServerLaunch launch

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-10 19:25:39.268
!MESSAGE GlassFish: in SUN SunAppServerLaunch Forcing a STOP!!!!

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-10 19:25:40.221
!MESSAGE GlassFish: done executing: false __locations

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-10 19:25:40.221
!MESSAGE GlassFish: apparently CREDENTIAL_ERROR

!ENTRY com.sun.enterprise.jst.server.sunappsrv 4 150 2008-11-10 19:25:40.221
!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)


Is it of any importance that my glassfish v3 prelude has been installed
with the Netbeans 6.5 RC installer?

Also, I get an NPE when trying to select one of my other servers in the
server view. Here's the log output:

!ENTRY org.eclipse.jface 4 2 2008-11-10 19:29:35.751
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
        at
com.sun.enterprise.jst.server.sunappsrv.actions.OpenBrowserAction.accept(OpenBrowserAction.java:66)
        at
com.sun.enterprise.jst.server.sunappsrv.actions.AppServerContextAction.selectionChanged(AppServerContextAction.java:229)
        at
org.eclipse.ui.actions.SelectionProviderAction.selectionChanged(SelectionProviderAction.java:143)
        at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
        at org.eclipse.core.runtime.Platform.run(Platform.java:880)
        at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
        at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
        at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
        at
org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2062)
        at
org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1138)
        at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1168)
        at
org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:227)
        at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:221)
        at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:388)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
        at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
        at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        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:585)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

!ENTRY org.eclipse.jface 4 2 2008-11-10 19:29:35.782
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
        at
com.sun.enterprise.jst.server.sunappsrv.actions.PreludeRegistrationAction.accept(PreludeRegistrationAction.java:97)
        at
com.sun.enterprise.jst.server.sunappsrv.actions.AppServerContextAction.selectionChanged(AppServerContextAction.java:229)
        at
org.eclipse.ui.actions.SelectionProviderAction.selectionChanged(SelectionProviderAction.java:143)
        at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
        at org.eclipse.core.runtime.Platform.run(Platform.java:880)
        at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
        at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
        at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
        at
org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2062)
        at
org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1138)
        at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1168)
        at
org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:227)
        at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:221)
        at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:388)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
        at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
        at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        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:585)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

!ENTRY org.eclipse.jface 4 2 2008-11-10 19:29:35.798
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
        at
com.sun.enterprise.jst.server.sunappsrv.actions.PreludeUpdateCenterAction.accept(PreludeUpdateCenterAction.java:82)
        at
com.sun.enterprise.jst.server.sunappsrv.actions.AppServerContextAction.selectionChanged(AppServerContextAction.java:229)
        at
org.eclipse.ui.actions.SelectionProviderAction.selectionChanged(SelectionProviderAction.java:143)
        at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
        at org.eclipse.core.runtime.Platform.run(Platform.java:880)
        at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
        at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
        at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
        at
org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2062)
        at
org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1138)
        at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1168)
        at
org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:227)
        at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:221)
        at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:388)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
        at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
        at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        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:585)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1212)


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