Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Generic External Server says shutdown failed before stop script has returned
Generic External Server says shutdown failed before stop script has returned [message #231099] Wed, 06 May 2009 11:15
Anders Olsson is currently offline Anders OlssonFriend
Messages: 21
Registered: July 2009
Junior Member
Hi,

I've defined a Server Adapter with
RuntimeType class:
org.eclipse.jst.server.generic.core.internal.GenericServerRu ntime
ServerType class:
org.eclipse.jst.server.generic.core.internal.GenericServer
ServerType behaviourClass:
org.eclipse.jst.server.generic.core.internal.ExternalServerB ehaviour
ServerType launchConfigId:
org.eclipse.jst.server.generic.core.ExternalLaunchConfigurat ionType

Starting the server leaves a process running for the lifetime of the
server.
Stopping the server runs the same script with a stop parameter which
signals the running server process to shut down.

My problem is that as soon as I press stop on the running server I get an
error dialog with the name "Problem Occurred", saying:
'Stopping <Server name> at <Server IP>' has encountered a problem. Server
<Server name> at <Server IP> failed to stop.

This error comes from line 2942 in
org.eclipse.wst.server.core.internal.Server (in 3.0.4). And is created
because the server is still identified as running.

The script takes a bit of time to finish, and usually the stop-script ends
before the server process (though I could change that order if it would
help). I've set the Stop timeout of the server to 60 seconds, which is
plenty.

I cannot see where the problem is in the WST/JST code, but is seems there
is a problem that stops the WST/JST code from waiting for the command to
return, before passing it's judgment on whether or not it was successful.

I've got the Eclipse Web Tools Platform book, but how this is supposed to
work for Externally launched servers.

Worth mentioning is that the server is actually running on a remote system
and the start and stop scripts are just local placeholders which signal
the remote system).

Can someone enlighten me what I might be missing in the logic I'm
currently using. This should be such a common use, that I'm hesitant to
file a bug report, because the problem is likely in my end.

Best Regards,

Anders Olsson
Previous Topic:How Add Java EE modules dependencies programatically
Next Topic:XML Design page change lost when prompted for checkou
Goto Forum:
  


Current Time: Thu Apr 25 12:01:48 GMT 2024

Powered by FUDForum. Page generated in 0.03030 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top