Griffon
  1. Griffon
  2. GRIFFON-541

Error with run-app on windows - path problems again?

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.0.2
    • Component/s: cli
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Attempting to run my projects on Windows with Griffon 1.0.1 using run-app results in errors like this one:

      C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix>griffon prod a
      Welcome to Griffon 1.0.1 - http://griffon-framework.org/
      Licensed under Apache Standard License 2.0
      Griffon home is set to: C:\Program Files\Griffon-1.0.1
      
      Base Directory: C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix
      Running script C:\Program Files\Griffon-1.0.1\scripts\App.groovy
      Resolving dependencies...
      Dependencies resolved in 274ms.
      Environment set to production
      Resolving framework plugin dependencies ...
      Framework plugin dependencies resolved in 372 ms.
      Resolving plugin dependencies ...
      Plugin dependencies resolved in 1813 ms.
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
           [copy] Copying 1 file to C:\Users\Dean Iverson\Documents\devel\vtti\dms\transerve\transerve-clients\drivemetrix\staging
      Launching application ...
      Error: Could not find or load main class Iverson\\Documents\\devel\\vtti\\dms\\transerve\\transerve-clients\\drivemetrix
      

        Activity

        Hide
        Andres Almiray added a comment -

        Could this issue be related to http://jira.codehaus.org/browse/GRIFFON-530 ?
        We recently fixed paths on Windows (again).

        Show
        Andres Almiray added a comment - Could this issue be related to http://jira.codehaus.org/browse/GRIFFON-530 ? We recently fixed paths on Windows (again).
        Hide
        Dean Iverson added a comment -

        I thought it might, so I applied the fix described in that issue. But the problem still remains. I'm sure it's a path problem, but apparently slightly different or related to my specific setup.

        I hate Windows.

        Show
        Dean Iverson added a comment - I thought it might, so I applied the fix described in that issue. But the problem still remains. I'm sure it's a path problem, but apparently slightly different or related to my specific setup. I hate Windows.
        Hide
        Dean Iverson added a comment -

        I did a little more digging. Moving the whole project out from under \Users\Dean Iverson\devel didn't help because the classpath still had references to \Users\Dean Iverson\.griffon\1.0.1\projects\etc\etc which need to be quoted. Putting quotes around the classpath finally got it to work.

        I hate Windows.

        Show
        Dean Iverson added a comment - I did a little more digging. Moving the whole project out from under \Users\Dean Iverson\devel didn't help because the classpath still had references to \Users\Dean Iverson\.griffon\1.0.1\projects\etc\etc which need to be quoted. Putting quotes around the classpath finally got it to work. I hate Windows.
        Hide
        Andres Almiray added a comment -

        Dean, could you please run the following command and post the output?

        griffon -Dgriffon.cli.verbose=true run-app
        
        Show
        Andres Almiray added a comment - Dean, could you please run the following command and post the output? griffon -Dgriffon.cli.verbose= true run-app
        Hide
        Andres Almiray added a comment -

        Fixed with https://github.com/griffon/griffon/commit/93084d96931cfeabdf0e511759e6fe619516155b

        The following output is from an application named "first-griffon" created under "C:\Documents and Setting
        s\aalmiray"

        [7/27/12 1:26:43 PM] Executing C:\java\jdk1.7.0_02\bin\java -Dgriffon.env=develo
        pment -Dgriffon.runmode=STANDALONE -Dgriffon.start.dir="C:\Documents and Setting
        s\aalmiray\tmp\first-griffon" -Djava.library.path="C:\java\jdk1.7.0_02\bin;C:\WI
        NDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS
        ;C:\WINDOWS\System32\Wbem;C:\java\jdk1.7.0_02\bin;C:\java\gradle-0.9.2\bin;C:\ja
        va\griffon-1.0.1\bin;.;C:\Documents and Settings\aalmiray\tmp\first-griffon\stag
        ing\windows\native" -Dgriffon.cli.verbose=true -Dgriffon.application.name="First
         Griffon" -classpath "C:\Documents and Settings\aalmiray\.griffon\1.0.1\projects
        \first-griffon\resources\griffon-app\i18n;C:\Documents and Settings\aalmiray\.gr
        iffon\1.0.1\projects\first-griffon\resources\griffon-app\resources;griffon-rt-1.
        0.1.jar;griffon-swing-runtime-1.0.1.jar;groovy-all-1.8.6.jar;jcl-over-slf4j-1.6.
        4.jar;jul-to-slf4j-1.6.4.jar;log4j-1.2.16.jar;slf4j-api-1.6.4.jar;slf4j-log4j12-
        1.6.4.jar;C:\Documents and Settings\aalmiray\.griffon\1.0.1\projects\first-griff
        on\classes\main" griffon.swing.SwingApplication
        
        Show
        Andres Almiray added a comment - Fixed with https://github.com/griffon/griffon/commit/93084d96931cfeabdf0e511759e6fe619516155b The following output is from an application named "first-griffon" created under "C:\Documents and Setting s\aalmiray" [7/27/12 1:26:43 PM] Executing C:\java\jdk1.7.0_02\bin\java -Dgriffon.env=develo pment -Dgriffon.runmode=STANDALONE -Dgriffon.start.dir="C:\Documents and Setting s\aalmiray\tmp\first-griffon " -Djava.library.path=" C:\java\jdk1.7.0_02\bin;C:\WI NDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS ;C:\WINDOWS\System32\Wbem;C:\java\jdk1.7.0_02\bin;C:\java\gradle-0.9.2\bin;C:\ja va\griffon-1.0.1\bin;.;C:\Documents and Settings\aalmiray\tmp\first-griffon\stag ing\windows\ native " -Dgriffon.cli.verbose= true -Dgriffon.application.name=" First Griffon " -classpath " C:\Documents and Settings\aalmiray\.griffon\1.0.1\projects \first-griffon\resources\griffon-app\i18n;C:\Documents and Settings\aalmiray\.gr iffon\1.0.1\projects\first-griffon\resources\griffon-app\resources;griffon-rt-1. 0.1.jar;griffon-swing-runtime-1.0.1.jar;groovy-all-1.8.6.jar;jcl-over-slf4j-1.6. 4.jar;jul-to-slf4j-1.6.4.jar;log4j-1.2.16.jar;slf4j-api-1.6.4.jar;slf4j-log4j12- 1.6.4.jar;C:\Documents and Settings\aalmiray\.griffon\1.0.1\projects\first-griff on\classes\main" griffon.swing.SwingApplication
        Hide
        Dean Iverson added a comment -

        Any chance you're planning to release this fix and GRIFFON-530 as part of a 1.0.2 patch release?

        Show
        Dean Iverson added a comment - Any chance you're planning to release this fix and GRIFFON-530 as part of a 1.0.2 patch release?
        Hide
        Andres Almiray added a comment -

        Both fixes will be included in 1.0.2

        Show
        Andres Almiray added a comment - Both fixes will be included in 1.0.2

          People

          • Assignee:
            Andres Almiray
            Reporter:
            Dean Iverson
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: