This might be Windows-specific.  I have observed this behavior since 'v2'
HEAD started running Spring Boot.  Exiting Eclipse doesn't free the port
for me, either.

I changed the packaging to "war" for the web project and added the Dynamic
Web Project facet, but that was not enough to handily deploy to a workspace
tomcat server with "Run on Server..."

On Mon, Apr 27, 2020 at 7:59 PM Andi Huber <[email protected]> wrote:

> In Eclipse I do terminate a launched process using the "Terminate"
> button that is associated with the "Console" view.
>
> I recently added a new feature to the DemoApps, that allows to run a new
> instance by just launching. It will shutdown any already running instance:
>
> public class DemoAppWicket extends SpringBootServletInitializer {
>
>      public static void main(String[] args) {
>
>          ThereCanBeOnlyOne.remoteShutdownOthersIfAny(); // <== shutdown
> via rest request
>
>          SpringApplication.run(new Class[] { DemoAppWicket.class }, args);
>      }
>
> }
>
> Cheers, Andi
>
> On 27.04.2020 22:57, Dan Haywood wrote:
> > Andi, you're an Eclipse user... what's your preferred way to run M3 ?
> >
> >
> > On Mon, 27 Apr 2020 at 19:39, Brian K <[email protected]> wrote:
> >
> >> I've noticed that the HTTP port does not get closed when I terminate an
> >> eclipse launch.   Running from a terminal window releases it when I
> pressed
> >> Ctrl-C.   I think it has to do with a Stack Overflow thread [1] that
> >> references an outstanding issue [2].
> >>
> >> I suppose running in a server container would fix this.  How do you run
> >> this from Eclipse?
> >>
> >> Thanks!
> >> Brian
> >>
> >>
> >>
> >> [1] :
> >>
> >>
> https://stackoverflow.com/questions/8814383/sending-sigint-ctrl-c-to-program-running-in-eclipse-console/28624925
> >> [2] : https://bugs.eclipse.org/bugs/show_bug.cgi?id=38016
> >>
>

Reply via email to