Skip to main content

Eclipse Glassfish server adapter - port conflict when starting glassfish

30 replies [Last post]
Anonymous

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)

[signature.asc]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
boulik1
Offline
Joined: 2006-08-31
Points: 0

ok, i will describe my settings.
Windows XP SP3, locale Slovak, loopback drive no, firewall from windows

eclipse 3.4.1, list plugins in attached zip
JDK1.6u10
Glassfish V3 prelude FCS
v3 installed on D:, i have there my projects, and tools
v3 on port 8180, on 8080 i use tomcat, v3 i am trying now for some features, that may speed up my development. Port i changed during installation.
v3 is fully functional outside eclipse, admin console too,
in v3 installed metro jersey, glassfish jsf2.0

by debug plugin from eclipse, server start normally in debuged workspace.

thats all, if i am missing something, i will add.

Slavo

Ludovic Champenois

glassfish@javadesktop.org wrote:
> ok, i will describe my settings.
> Windows XP SP3, locale Slovak, loopback drive no, firewall from windows
>
>
Tracked as https://glassfishplugins.dev.java.net/issues/show_bug.cgi?id=72

Thanks,
Ludo
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Ludovic Champenois

glassfish@javadesktop.org wrote:
> i have the same problem, i think.
>

Will look into it, but we need more info:

1/ when you installed v3 via the installer, did you select a user name
and password for admin config?
2/ if yes, can you unselect the checkbox "Use Anonymous Connection for
Admin Commands" and make sure you enter the correct username and
password in the 2 fields (that should be enabled).

See attached image.

If you did not enter a username password during install time, that would
be a bug, but we need to know the exact configuration you have.

Ludo
[ishot-101.png]
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

boulik1
Offline
Joined: 2006-08-31
Points: 0

ok,
i installed via installer with user name na password for config, and then without, in both case was the same result.

Slavo

Ludovic Champenois

glassfish@javadesktop.org wrote:
> ok,
> i installed via installer with user name na password for config, and then without, in both case was the same result.
>
>
And with both installations, you can start the server outside Eclipse,
and view then admin console at http://localhost:4848 ?
I am trying to understand and find a way to reproduce this state...So
far, cannot.

Ludo
> Slavo
> [Message sent by forum member 'boulik1' (boulik1)]
>
> http://forums.java.net/jive/thread.jspa?messageID=316055
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

boulik1
Offline
Joined: 2006-08-31
Points: 0

i can start the server outside eclipse and view admin console.
i know, that is not easy reproduce this state.:(
can you send me a procedure, which i can try, and then send you the result?
Slavo

boulik1
Offline
Joined: 2006-08-31
Points: 0

i tried to get some log from plugin. first change i made in SunAppServer.java on row 347. I changed to this
Future result = execute(command);
SunAppSrvPlugin.logMessage(result.get(30, TimeUnit.SECONDS).name() );
if(result.get(30, TimeUnit.SECONDS) == OperationState.COMPLETED) {

second, i catch log from plugin at level finest. Maybe this helps you locate problem with plugin.
.log file is log file from eclipse
eclipse.log is log file from plugin

Slavo

Ludovic Champenois

glassfish@javadesktop.org wrote:
> i tried to get some log from plugin. first change i made in SunAppServer.java on row 347. I changed to this
> Future result = execute(command);
> SunAppSrvPlugin.logMessage(result.get(30, TimeUnit.SECONDS).name() );
> if(result.get(30, TimeUnit.SECONDS) == OperationState.COMPLETED) {
>
> second, i catch log from plugin at level finest. Maybe this helps you locate problem with plugin.
> .log file is log file from eclipse
> eclipse.log is log file from plugin
>
>
Looking at it now, but still not sure what is happening.
Can you browse to this URL (
http://localhost:4848/__asadmin/__locations ) via your browser (or via
the internal brower inside Eclipse) to see the output result page, once
the server is running...?
Ludo

> Slavo
> [Message sent by forum member 'boulik1' (boulik1)]
>
> http://forums.java.net/jive/thread.jspa?messageID=316148
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

boulik1
Offline
Joined: 2006-08-31
Points: 0

ok, i tried to browse to this URL. And....
when server is runnig, i see the result page,
but just after start the v3 from commandline, i seen error page. I cant to measure time after which this URL is avialable. Maybe it could help to retry moretimes check this URL, or set some delay before check.
Slavo

Ludovic Champenois

glassfish@javadesktop.org wrote:
> ok, i tried to browse to this URL. And....
> when server is runnig, i see the result page,
> but just after start the v3 from commandline, i seen error page. I cant to measure time after which this URL is avialable. Maybe it could help to retry moretimes check this URL, or set some delay before check.
> Slavo
>

At this point the best is to enable more trace in the plugin.
I posted a new one at
https://glassfishplugins.dev.java.net/files/documents/3651/116776/com.su...

Just replace this jar from the one in eclipse/plugins dir and restart
Eclipse.
Enable our plugin logging info,
Re run you start scenario and send me the trace.
I agree with you it might be a timing issue. What is the speed of your
machine?

Many thanks, I think we are close to a solution
Ludo
> [Message sent by forum member 'boulik1' (boulik1)]
>
> http://forums.java.net/jive/thread.jspa?messageID=316165
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

boulik1
Offline
Joined: 2006-08-31
Points: 0

> glassfish@javadesktop.org wrote:
> > ok, i tried to browse to this URL. And....
> > when server is runnig, i see the result page,
> > but just after start the v3 from commandline, i
> seen error page. I cant to measure time after which
> this URL is avialable. Maybe it could help to retry
> moretimes check this URL, or set some delay before
> check.
> > Slavo
> >
>
> At this point the best is to enable more trace in the
> plugin.
> I posted a new one at
> https://glassfishplugins.dev.java.net/files/documents/
> 3651/116776/com.sun.enterprise.jst.server.sunappsrv_1.
> 0.14.jar
>
> Just replace this jar from the one in eclipse/plugins
> dir and restart
> Eclipse.
> Enable our plugin logging info,
> Re run you start scenario and send me the trace.
OK, here is trace :).

> I agree with you it might be a timing issue. What is
> the speed of your
> machine?
My notebook has intel core duo 1,83GHz and 1,5GB RAM.

i enjoy, when i can help to make things better. ;)
Slavo
>
> Many thanks, I think we are close to a solution
> Ludo
> > [Message sent by forum member 'boulik1' (boulik1)]
> >
> >
> http://forums.java.net/jive/thread.jspa?messageID=3161
> 65
> >
> >
> ------------------------------------------------------
> ---------------
> > To unsubscribe, e-mail:
> users-unsubscribe@glassfish.dev.java.net
> > For additional commands, e-mail:
> users-help@glassfish.dev.java.net
> >
> >
>
>
> ------------------------------------------------------
> ---------------
> To unsubscribe, e-mail:
> users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail:
> users-help@glassfish.dev.java.net

Ludovic Champenois

glassfish@javadesktop.org wrote:
>> glassfish@javadesktop.org wrote:
>>
>>> ok, i tried to browse to this URL. And....
>>> when server is runnig, i see the result page,
>>> but just after start the v3 from commandline, i
>>>
>> seen error page. I cant to measure time after which
>> this URL is avialable. Maybe it could help to retry
>> moretimes check this URL, or set some delay before
>> check.
>>
>>> Slavo
>>>
>>>
>> At this point the best is to enable more trace in the
>> plugin.
>> I posted a new one at
>> https://glassfishplugins.dev.java.net/files/documents/
>> 3651/116776/com.sun.enterprise.jst.server.sunappsrv_1.
>> 0.14.jar
>>
>> Just replace this jar from the one in eclipse/plugins
>> dir and restart
>> Eclipse.
>> Enable our plugin logging info,
>> Re run you start scenario and send me the trace.
>>
> OK, here is trace :).
>
>
...I see an infamous
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at
com.sun.enterprise.jst.server.sunappsrv.commands.CommandRunner.call(CommandRunner.java:317)

When the plugin uses " http://localhost:4848/__asadmin/__locations" to
get the server location (tested needed to check if the server we are
talking to is really the server we want).
Any info about your networks settings (proxies, firewall,...)
If you have a firewall, can you disable it quickly and retest?
Google shows many posts with such error, without a clear answer.

Ludo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

boulik1
Offline
Joined: 2006-08-31
Points: 0

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 SocketException.

Slavo

Message was edited by: boulik1

Ludovic Champenois

glassfish@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...
So basically, what I know is that you have
Win XP, correct speed and memory
(which locale, and service pack? loopback driver? Xp Firewall on (or off
-does not matter))
latest Eclipse from sept 2008. Which other plugins installed? I see a
lot of exception in Eclipse logs from other plugins...
JDK 1.6u10
GlassFish v3 Prelude (FCS or not?)
v3 installed in your D: drive (might be important)
v3 configured with port 8180: Why not thr default 8080? How did you
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?)
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.

Ludo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

heapifyman

Ludovic Champenois schrieb:
> glassfish@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@glassfish.dev.java.net
> For additional commands, e-mail: users-help@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@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@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.(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.(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)
[FireShot capture #72 - '' - localhost_4848___asadmin___locations.png]
[signature.asc]

Ludovic Champenois

heapifyman wrote:
> ...

fcs means final official build.
> As asked before: is there information available somewhere as to how to
> configure eclipse to debug the plugin?
>
> Greetings
>
1/ get the source code of the plugin via glassfishplugins.dev.java.net (cvs)
2/ Import the plugin source code (Menu "import -Import----Existing
Project into Workspace..."in Eclipse)
3/ Right click on the plugin.xml of the plugin and select menu: Debug
as---Eclipse Application
This will launch a new Eclipse IDE in debug more that can be debugged
from the first Eclipse process.

Ludo

>
>> Ludo
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>
>>
>
>
> ------------------------------------------------------------------------
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

heapifyman

Ludovic Champenois schrieb:
> heapifyman wrote:
>> ...
>
> fcs means final official build.
>> As asked before: is there information available somewhere as to how to
>> configure eclipse to debug the plugin?
>>
>> Greetings
>>
> 1/ get the source code of the plugin via glassfishplugins.dev.java.net
> (cvs)
> 2/ Import the plugin source code (Menu "import -Import----Existing
> Project into Workspace..."in Eclipse)
> 3/ Right click on the plugin.xml of the plugin and select menu: Debug
> as---Eclipse Application
> This will launch a new Eclipse IDE in debug more that can be debugged
> from the first Eclipse process.

Okay, thanks. I tried that.
And I could sometimes start the server in the new Eclipse instance.
But not always. It seems to depend on the time I wait in some
breakpoints. But I couldn't figure out at which one.

Also, the problem is not limited to v3; at least for me. A Glassfish
V2UR2 also cannot be started from within Eclipse (same error message)
although it starts fine from the commandline and from within Netbeans.
the "jmxc = JMXConnectorFactory.connect(url, env);" in
getV2ServerStatus() is failing as it seems.
(see attached log file)

Best regards

>
> Ludo
>
>>
>>> Ludo
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-13 13:00:29.552
!MESSAGE GlassFish: in SUN SunAppServerLaunch launch

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-13 13:00:29.568
!MESSAGE GlassFish: in SUN SunAppServerLaunch Forcing a STOP!!!!

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-13 13:00:29.568
!MESSAGE GlassFish: service:jmx:rmi:///jndi/rmi://localhost:8686/jmxrmi

!ENTRY com.sun.enterprise.jst.server.sunappsrv 4 1 2008-11-13 13:00:30.771
!MESSAGE GlassFish: V2 not ready yet:
!STACK 0
java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
at com.sun.enterprise.jst.server.sunappsrv.SunAppServer.getV2ServerStatus(SunAppServer.java:401)
at com.sun.enterprise.jst.server.sunappsrv.SunAppServerLaunch.launch(SunAppServerLaunch.java:104)
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: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1817)
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1787)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:259)
... 10 more
Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:93)
... 15 more
Caused by: 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.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at java.net.Socket.(Socket.java:367)
at java.net.Socket.(Socket.java:180)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
... 20 more

!ENTRY com.sun.enterprise.jst.server.sunappsrv 4 150 2008-11-13 13:00:30.787
!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)
[signature.asc]

anbarasumr
Offline
Joined: 2009-03-03
Points: 0

Go to task manager -->
processes tab

find process related to tomcat server or java or javaw
end these processes

thats all

run your application,
your program will execute now

Regards,
A.A.Anbarau

raccah
Offline
Joined: 2004-03-04
Points: 0

Just to keep this thread complete - we believe the bug is fixed in plugin version 1.0.20 - issue 72 (https://glassfishplugins.dev.java.net/issues/show_bug.cgi?id=72). Please reopen this issue if you still have problems.

vtiller
Offline
Joined: 2009-06-26
Points: 0

the bug is alive with plugin version 1.0.26:
GlassFish v3 Prelude may be started with startserv.bat,
but there is the port-conflict starting it in Eclipse 3.4.2

Rochelle Raccah

At this point, I would suggest that it is a separate issue and you
should file it with details/logs/etc. at
https://glassfishplugins.dev.java.net/issues/

Thanks,
Rochelle

glassfish@javadesktop.org wrote:
> the bug is alive with plugin version 1.0.26:
> GlassFish v3 Prelude may be started with startserv.bat,
> but there is the port-conflict starting it in Eclipse 3.4.2
> [Message sent by forum member 'vtiller' (vtiller)]
>
> http://forums.java.net/jive/thread.jspa?messageID=353164
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

mauro_monti
Offline
Joined: 2003-09-15
Points: 0

Did anybody solve this issue?...
Regards...
Mauro

Message was edited by: mauro_monti

Rochelle Raccah

It is being tracked as
https://glassfishplugins.dev.java.net/issues/show_bug.cgi?id=72

Feel free to add yourself to the cc list of the issue - as you can see
it is not yet resolved.

Rochelle

glassfish@javadesktop.org wrote:
> Can anybody solve this issue?...
> Regards...
> Mauro
> [Message sent by forum member 'mauro_monti' (mauro_monti)]
>
> http://forums.java.net/jive/thread.jspa?messageID=321151
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

raccah
Offline
Joined: 2004-03-04
Points: 0

We've released a patch for this problem in version 1.0.18 of the plugin. If you could try it and see if solves the problem for you, we'd appreciate it.

davisn
Offline
Joined: 2005-03-29
Points: 0

I used 3 different windowXP machines, but haven't got into the Glassfish V3 Prelude Server started problem. I guess the problem only happens to some particular windowXP enviroments!

heapifyman

glassfish@javadesktop.org schrieb:
> I used 3 different windowXP machines, but haven't got into the Glassfish V3 Prelude Server started problem. I guess the problem only happens to some particular windowXP enviroments!
> [Message sent by forum member 'davisn' (davisn)]

Don't know if this gives any more information but I tried to start
glassfish v3 now with:
1. fresh workspace
2. 1. + fresh eclipse installation (ganymede j2ee edition from eclipse.org)
3. 2. + fresh glassfish-prelude installation on drive D: (zip-file
distribution from https://glassfish.dev.java.net/downloads/v3-prelude.html)
4. same as 3. but glassfish installed on C:

In all 4 cases I tried to start with and without anonymous admin access.

Still, in all 4 cases I got the same error message as before.

As before, starting from commandline succeeds.

Greetings

>
> http://forums.java.net/jive/thread.jspa?messageID=317148
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

[signature.asc]

Ludovic Champenois

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?
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)
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.
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@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

heapifyman

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@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

[signature.asc]

boulik1
Offline
Joined: 2006-08-31
Points: 0

i have the same problem, i think.
here is output from eclipse log:

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

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

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

!ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-10 20:10:52.515
!MESSAGE GlassFish: apparently CREDENTIAL_ERROR

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

Slavo

heapifyman

glassfish@javadesktop.org schrieb:
> i have the same problem, i think.

Glad to know, I'm not the only one.

I'm not familiar with Eclipse plugin development. After some searching I
did manage to get the plugins source code. But I couldn't find any
instructions as to how to configure Eclipse to debug the plugin.
If someone could point me to some information about that I might be able
to provide more information about the problem.

Thanks

> here is output from eclipse log:
>
> !ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-10 20:10:50.484
> !MESSAGE GlassFish: in SUN SunAppServerLaunch launch
>
> !ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-10 20:10:50.500
> !MESSAGE GlassFish: in SUN SunAppServerLaunch Forcing a STOP!!!!
>
> !ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-10 20:10:52.515
> !MESSAGE GlassFish: done executing: false __locations
>
> !ENTRY com.sun.enterprise.jst.server.sunappsrv 1 1 2008-11-10 20:10:52.515
> !MESSAGE GlassFish: apparently CREDENTIAL_ERROR
>
> !ENTRY com.sun.enterprise.jst.server.sunappsrv 4 150 2008-11-10 20:10:52.515
> !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)
>
> Slavo
> [Message sent by forum member 'boulik1' (boulik1)]
>
> http://forums.java.net/jive/thread.jspa?messageID=316025
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

[signature.asc]