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

Problem deploying Grails App if workspace path has a space

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0.M1
    • Component/s: None
    • Labels:
      None

      Description

      Problem was noticed by Andy Clement on a Windows machine. But likely it is not Windows specific but problem with the spaces in the path name.

      From Andy's email message:

      > Mine is in here: C:\Users\Andy Clement\Documents\workspace-sts-2.9.1.RELEASE

      > fails with:

      > | Loading Grails 2.0.1
      > | Configuring classpath.
      > | Environment set to development.....
      > | Packaging Grails application.....
      > | Compiling 2 source files.....
      > | Compiling 8 GSP files for package [grailyAndy]...
      > | Building WAR file.....
      > | Error Error executing script War: : C:\Users\Andy is not a file.
      > | (Use --stacktrace to see the full trace)

      > (this is a dev war command run when I dragged it onto CF)

        Activity

        Hide
        Andrew Eisenberg (c) added a comment -

        I wonder if this is related to the problem on the grails mailing list where the user had Portguese characters in the temp folder name.

        Show
        Andrew Eisenberg (c) added a comment - I wonder if this is related to the problem on the grails mailing list where the user had Portguese characters in the temp folder name.
        Hide
        Kris De Volder (c) added a comment -

        No I don't think it is the same problem, but it has a similar cause.

        However, it seems related to this other problem on the forum:
        http://forum.springsource.org/showthread.php?124502-ERROR-startup-ContextConfig-Unable-to-determine-URL-for-WEB-INF-classes-grails

        I got that exact same error trying to deploy a very basic app from a workspace at "/home/kdvolder/has some spaces".
        On windows problem manifests as an error building the war, but on linux the war is build in another place under a newly created folder "/home/kdvolder/has". Eventually leading to this 'unable to determine URL' error.

        It could be this isn't a Windows <-> Linux thing making the difference. Could also be whether the funky folder created by shopping off the name at the first space is under a location that is user writeable.

        I'm investigating now to see who is the culprit (i.e is STS or Grails responsible for shopping the spacy names to bits).

        Show
        Kris De Volder (c) added a comment - No I don't think it is the same problem, but it has a similar cause. However, it seems related to this other problem on the forum: http://forum.springsource.org/showthread.php?124502-ERROR-startup-ContextConfig-Unable-to-determine-URL-for-WEB-INF-classes-grails I got that exact same error trying to deploy a very basic app from a workspace at "/home/kdvolder/has some spaces". On windows problem manifests as an error building the war, but on linux the war is build in another place under a newly created folder "/home/kdvolder/has". Eventually leading to this 'unable to determine URL' error. It could be this isn't a Windows <-> Linux thing making the difference. Could also be whether the funky folder created by shopping off the name at the first space is under a location that is user writeable. I'm investigating now to see who is the culprit (i.e is STS or Grails responsible for shopping the spacy names to bits).
        Hide
        Kris De Volder (c) added a comment -

        I found that there is a problem in STS passing arguments with spaces to 'GrailsScriptRunner'. This bug was introduced in changes we made to support Grails 2.0 'GrailsScriptRunner'.

        Show
        Kris De Volder (c) added a comment - I found that there is a problem in STS passing arguments with spaces to 'GrailsScriptRunner'. This bug was introduced in changes we made to support Grails 2.0 'GrailsScriptRunner'.
        Hide
        Kris De Volder (c) added a comment -

        I've committed a fix. Also some regression test covering the 'space in path' for this particular situation.

        Show
        Kris De Volder (c) added a comment - I've committed a fix. Also some regression test covering the 'space in path' for this particular situation.

          People

          • Assignee:
            Kris De Volder (c)
            Reporter:
            Kris De Volder (c)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: