gretty-gradle-plugin / gretty

Advanced gradle plugin for running web-apps on jetty and tomcat.
MIT License
129 stars 36 forks source link

appRun and farmRun stop failure #180

Open michael-newsrx opened 4 years ago

michael-newsrx commented 4 years ago

v3.0.3, tomcat9

When pressing a key to trigger appRun or farmRun stop, I get the error message:

> Task :farmRun FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':farmRun'.
> java.net.ConnectException: Connection refused (Connection refused)

While it doesn't every time, it happens a lot. After this if I restart via farmRun or appRun the port shows as still in use - presumably from the non-stopped previous tomcat.

If I then stop that process then restart it again, it many times will then start successfully.

Additionally, if I wait a while, the orphaned tomcat seems to exit without needing to run gradle --stop.

dtbullock commented 3 years ago

Are you invoking Gradle from the command line directly, or via IntelliJ IDEA? (I have issues similar to this, with IDEA).

michael-newsrx commented 3 years ago
command line

On 3/22/21 9:56 PM, dtbullock wrote:

  Are you invoking Gradle from the command line directly, or via
    IntelliJ IDEA? (I have issues similar to this, with IDEA).
  —
    You are receiving this because you authored the thread.
    Reply to this email directly, view it on GitHub, or unsubscribe.
  [

{ @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/gretty-gradle-plugin/gretty/issues/180#issuecomment-804524671", "url": "https://github.com/gretty-gradle-plugin/gretty/issues/180#issuecomment-804524671", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]