Spring Tool Suite
  1. Spring Tool Suite
  2. STS-3155

Properly handle 'run-app' when running via command prompt

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 3.2.0.M1
    • Fix Version/s: 3.3.0.M1
    • Component/s: GRAILS
    • Labels:
      None
    • Environment:

      Ubuntu 64
      Milestone Version - Groovy/Grails Tool Suite 3.2.0.M1 - based on Eclipse Juno 3.8.1 Linux (GTK, 64bit)

      Description

      When I start a grails app in ggts it starts properly but the progress bar is stuck at 33%. This is not that bad but I guess it causes another problem:
      When I terminate the app i get a pop-up saying: "Problem executing: run-app" which is a bit annoying

        Activity

        Hide
        Kris De Volder (c) added a comment -

        Sorry, but there are a number of different ways to run grails commands from STS. Please be more specific as to how you are running the command.

        BTW, I think the problem you are describing probably won't happen if you use menu 'Run As >> Grails command (run-app)'. This is probably what you should be using to call 'run-app' STS.

        Show
        Kris De Volder (c) added a comment - Sorry, but there are a number of different ways to run grails commands from STS. Please be more specific as to how you are running the command. BTW, I think the problem you are describing probably won't happen if you use menu 'Run As >> Grails command (run-app)'. This is probably what you should be using to call 'run-app' STS.
        Hide
        Darrel Youngblood added a comment -

        I'm using Grails Command Prompt. When I use 'Run As >> Grails command (run-app)' I get:

        "Error opening zip file or JAR manifest missing : null"

        Show
        Darrel Youngblood added a comment - I'm using Grails Command Prompt. When I use 'Run As >> Grails command (run-app)' I get: "Error opening zip file or JAR manifest missing : null"
        Hide
        Darrel Youngblood added a comment -

        Btw I copied the "com.springsource.springloaded" folder and renamed to "org.springsource.springloaded" in grails_home lib folder.

        Show
        Darrel Youngblood added a comment - Btw I copied the "com.springsource.springloaded" folder and renamed to "org.springsource.springloaded" in grails_home lib folder.
        Hide
        Kris De Volder (c) added a comment - - edited

        > I'm using Grails Command Prompt. When I use 'Run As >> Grails command (run-app)' I get:
        > "Error opening zip file or JAR manifest missing : null"

        I see. Yes that is annoying many people have been hitting that bug. It is already fixed, and from your comment it seems you probably already know that and found the issue with its workaround.

        The workaround has worked for other people, so maybe double check again if you copied and renamed everything right.

        The 'stuck' problem with the command prompt is really to be expected. This is because 'run-app' is a bit special in that the command doesn't typically terminate since the server is meant to keep running.
        The command is stuck... because its essentially waiting for the command to finish / terminate.

        Maybe there's something we can do about this, maybe make run-app a special case in the command prompt and somehow execute it asynchronously. I'll need to think about it a bit.

        Thanks for elaborating on the details.

        Edit: adding a link to issue with workaround for this error: "Error opening zip file or JAR manifest missing : null"
        https://issuetracker.springsource.com/browse/STS-3128

        I realize you probably already found it, but other people may end up here via google search.

        Show
        Kris De Volder (c) added a comment - - edited > I'm using Grails Command Prompt. When I use 'Run As >> Grails command (run-app)' I get: > "Error opening zip file or JAR manifest missing : null" I see. Yes that is annoying many people have been hitting that bug. It is already fixed, and from your comment it seems you probably already know that and found the issue with its workaround. The workaround has worked for other people, so maybe double check again if you copied and renamed everything right. The 'stuck' problem with the command prompt is really to be expected. This is because 'run-app' is a bit special in that the command doesn't typically terminate since the server is meant to keep running. The command is stuck... because its essentially waiting for the command to finish / terminate. Maybe there's something we can do about this, maybe make run-app a special case in the command prompt and somehow execute it asynchronously. I'll need to think about it a bit. Thanks for elaborating on the details. Edit: adding a link to issue with workaround for this error: "Error opening zip file or JAR manifest missing : null" https://issuetracker.springsource.com/browse/STS-3128 I realize you probably already found it, but other people may end up here via google search.
        Hide
        Kris De Volder (c) added a comment -

        Edited the description to be more about the actual problem of using 'run-app' in command prompt.

        Problems we need to try and fix include:

        Show
        Kris De Volder (c) added a comment - Edited the description to be more about the actual problem of using 'run-app' in command prompt. Problems we need to try and fix include: command seeming to get 'stuck' because of syncronous execution command timing out and being terminated after a while reloading not working (observed with Grails 2.0.4, see http://forum.springsource.org/showthread.php?135552-GGTS-3-2-Grails-not-reloading-classes
        Hide
        Kris De Volder (c) added a comment -

        Just pushed a fix. Tested with Grails 2.0.4 and 2.2.1.

        Show
        Kris De Volder (c) added a comment - Just pushed a fix. Tested with Grails 2.0.4 and 2.2.1.

          People

          • Assignee:
            Kris De Volder (c)
            Reporter:
            Darrel Youngblood
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: