Whirr
  1. Whirr
  2. WHIRR-460

Error while running whirr on Cygwin

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.7.0
    • Fix Version/s: 0.7.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Cygwin

      Description

      When I try to run bin/whirr on Cygwin jars are not loaded properly into the classpath. This works well on any linux ofcourse but not Cygwin.

      java.lang.NoClassDefFoundError: org/apache/whirr/cli/Main
      Caused by: java.lang.ClassNotFoundException: org.apache.whirr.cli.Main
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      Could not find the main class: org.apache.whirr.cli.Main. Program will exit.
      Exception in thread "main"

      1. Whirr-460-v2.patch
        0.8 kB
        Akash Ashok
      2. Whirr-460-v2.patch
        0.8 kB
        Akash Ashok
      3. Whirr-460.patch
        0.8 kB
        Akash Ashok

        Activity

        Akash Ashok created issue -
        Andrei Savu made changes -
        Field Original Value New Value
        Fix Version/s 0.8.0 [ 12318880 ]
        Hide
        Akash Ashok added a comment -

        CLASSPATH converted from windows to UNIX style if the environment is Cygwin

        Show
        Akash Ashok added a comment - CLASSPATH converted from windows to UNIX style if the environment is Cygwin
        Akash Ashok made changes -
        Attachment Whirr-460.patch [ 12509010 ]
        Akash Ashok made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hide
        Akash Ashok added a comment -

        Comments rectified

        Show
        Akash Ashok added a comment - Comments rectified
        Akash Ashok made changes -
        Attachment Whirr-460-v2.patch [ 12509015 ]
        Andrei Savu made changes -
        Assignee Akash Ashok [ thehellmaker ]
        Hide
        Andrei Savu added a comment -

        Looks good. Can you resubmit and select "Grant license to ASF for inclusion in ASF works"? (just to be safe from a legal perspective).

        Show
        Andrei Savu added a comment - Looks good. Can you resubmit and select "Grant license to ASF for inclusion in ASF works"? (just to be safe from a legal perspective).
        Hide
        Akash Ashok added a comment -

        License Accepted

        Show
        Akash Ashok added a comment - License Accepted
        Akash Ashok made changes -
        Attachment Whirr-460-v2.patch [ 12509059 ]
        Hide
        Andrei Savu added a comment -

        +1 I will commit as soon as I can give it a try.

        Show
        Andrei Savu added a comment - +1 I will commit as soon as I can give it a try.
        Hide
        Adrian Cole added a comment -

        haven't tried this, but the code looks fine

        Show
        Adrian Cole added a comment - haven't tried this, but the code looks fine
        Hide
        Andrei Savu added a comment -

        Committed. I've checked the docs for cygpath & uname on Cygwin. Thanks Akash!

        Show
        Andrei Savu added a comment - Committed. I've checked the docs for cygpath & uname on Cygwin. Thanks Akash!
        Andrei Savu made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Andrei Savu made changes -
        Fix Version/s 0.7.1 [ 12319462 ]
        Fix Version/s 0.8.0 [ 12318880 ]
        Andrei Savu made changes -
        Fix Version/s 0.8.0 [ 12318880 ]
        Fix Version/s 0.7.1 [ 12319462 ]
        Hide
        Andrei Savu added a comment -

        Committed to 0.7 branch.

        Show
        Andrei Savu added a comment - Committed to 0.7 branch.
        Andrei Savu made changes -
        Fix Version/s 0.7.1 [ 12319942 ]
        Andrei Savu made changes -
        Fix Version/s 0.8.0 [ 12318880 ]
        Hide
        Roshini added a comment -

        I'm getting the same error for ubuntu 12.04 on amazon ec2..does a patch exist for this?

        Show
        Roshini added a comment - I'm getting the same error for ubuntu 12.04 on amazon ec2..does a patch exist for this?

          People

          • Assignee:
            Akash Ashok
            Reporter:
            Akash Ashok
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development