Re: SOLVED - Re: Aw: Re: mvn redeploy - double redeployment problem (within 0.2 seconds)

2020-02-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Peter,

On 2/2/20 4:48 PM, Peter Rader wrote:
> The old version of the application had a daemon that have not yet 
> finished his execution.

Tomcat cannot detect this situation, so it's unlikely to be the direct
problem. How did you come to your conclusion?

> Unfortuantely there is no further logging why the old version not 
> stoped yet.
> 
> I expected to have the "mvn redeploy" waiting forever for this 
> deamon-locked problem. What I can not do is write a bug report 
> because the bug was inside my app.

Why not? Are bugs in your application considered /features/?

> But what I might do is to add a feature-request. Not sure where,
> and not sure for what component, maven-tomcat-plugin maybe...

What would the description be for the bug-report? "Please wait for all
application-launched threads to complete before responding to the
Maven plug-in's request top deploy a new version of my application"?

All Tomcat does is wait for in-process requests to complete, then
bring the application down, install the new one, and bring the new
instance up. If you have a thread doing something else, Tomcat will
not stop it, wait for it, or otherwise interrupt it (unless you have a
ServletContextListener which waits for it to stop during shutdown,
which you absolutely should be doing).

- -chris

NB: To Calder's point, you /did/ start another thread whether or not
you realized it. Your "SOLVED" message(s) lack the proper SMTP
headers[1] to get the messages properly threaded. It's not a big deal
for real-time readers, but it's quite important for the mailing-list
archives which are very valuable to people who have your same issue
but aren't reading about it /today/.

[1] https://cr.yp.to/immhf/thread.html
-BEGIN PGP SIGNATURE-
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl44MKMACgkQHPApP6U8
pFiN6g/+LjIzNywFxgu6BLxjt0uMhA7p2XaZrmNzWf+zKEqNaISsoJmemiYNAlph
1xWMxiMOVD4a/kjRtdRdTXsHfacHg9i6jQdrc/4aYDR8FD22BHymsJgqpVpNfmrb
eQrDcLSrx21kM5njlgHiS2K3NS6yjGmrGl0BrXfmHAenXbWPfck8s2SnU5E23Laf
hFtwM3yy61Y7R4u/YC0SWA/NM4ynPrpCM08Ylujgcaw0fxCf8yXXNGluZPEBjB0L
tP1lEwagv8wdFx0EOnKXwT9bFwgL6FNQcgk3RP94pkxw30HJ63gS7DLQ7FyvL0WN
uPU5UjXw29sqk88oW3cWc/q8idwXlNXWvekoN4Avs3eXp+rPMJ/vH/oYO6gDKWjG
kPtx+gwvffZqY0+lL/7ZPkjmmFMKskdkJMoOTOEcWYeii03cxXGsEz7KCf5oNEQD
Jft8QzyIv+fVpO0GyUEqzi3mCaHvwKLQ+0DU2b96LYXx5zr5F3c4Gc+es6aH7Qlg
o21+NG39BhSen9Y5eFObnONEtcXDh3F5udXgv5U+ExKYovZz81q1XnPvoAowGn3f
fQbH2UxlW1vmTEeBZ+8H/pmUH4xi99V/b0svA3zfTkWND0/Y9cmW7YIjfDfnLP+C
U50j52hrYqsYfd72YS0nJIEjnAcJ0z1ywtatH5xx7QXETurRWMY=
=LMkr
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: SOLVED - Re: Aw: Re: mvn redeploy - double redeployment problem (within 0.2 seconds)

2020-02-02 Thread calder
On Sun, Feb 2, 2020, 15:49 Peter Rader  wrote:

> The old version of the application had a daemon that have not yet finished
> his execution.
>
> Unfortuantely there is no further logging why the old version not stoped
> yet.
>
> I expected to have the "mvn redeploy" waiting forever for this
> deamon-locked problem. What I can not do is write a bug report because the
> bug was inside my app. But what I might do is to add a feature-request. Not
> sure where, and not sure for what component, maven-tomcat-plugin maybe...
>
>

Please post updates to the original thread.

As suggested in the original thread, it was a permissions issue ...
permission denied because the port was already in use : )


SOLVED - Re: Aw: Re: mvn redeploy - double redeployment problem (within 0.2 seconds)

2020-02-02 Thread Peter Rader
The old version of the application had a daemon that have not yet finished his 
execution.

Unfortuantely there is no further logging why the old version not stoped yet.

I expected to have the "mvn redeploy" waiting forever for this deamon-locked 
problem. What I can not do is write a bug report because the bug was inside my 
app. But what I might do is to add a feature-request. Not sure where, and not 
sure for what component, maven-tomcat-plugin maybe...

Thanks.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org