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

After update to Grails 2.0.2 any Grails operation in STS fails

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.9.1.RELEASE
    • Fix Version/s: 3.0.0.M1
    • Component/s: GRAILS
    • Labels:
    • Environment:

      Linux 2.6.32-5-686-bigmem
      Windows 7 x64
      JDK 1.6.0

      Description

      After installing new Grails release and reconfiguring workspace to use new installation as default any grails operation from IDE fails with stack trace:

      Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/groovy/tools/RootLoader
      Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.tools.RootLoader
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      Could not find the main class: org.codehaus.groovy.grails.cli.support.GrailsStarter.  Program will exit.
      

      Attempts to create new project using Grails 2.0.2 installation in an empty workspace fail with same cause.

      Grails installation is functional, and Grails works from OS CLI

        Activity

        Hide
        Andy Clement (c) added a comment -

        This is fixed in nightly builds, grab updated tools from this update site:

        http://dist.springsource.com/snapshot/TOOLS/nightly/e3.7

        Show
        Andy Clement (c) added a comment - This is fixed in nightly builds, grab updated tools from this update site: http://dist.springsource.com/snapshot/TOOLS/nightly/e3.7
        Hide
        Kris De Volder (c) added a comment -

        Thanks for raising the bug. Hopefully others hitting the problem will google their error message and find it here

        I'm closing it since it has already been fixed in nightly.

        Show
        Kris De Volder (c) added a comment - Thanks for raising the bug. Hopefully others hitting the problem will google their error message and find it here I'm closing it since it has already been fixed in nightly.
        Hide
        Rohan Arora added a comment -

        Even I am facing the issue. Can you please tell me how to use the update site to fix it? Please its urgent.Thanks

        Show
        Rohan Arora added a comment - Even I am facing the issue. Can you please tell me how to use the update site to fix it? Please its urgent.Thanks
        Hide
        Kris De Volder (c) added a comment -

        To use update site go to menu "Help >> Install new Software" paste update site URL in the "work with" box.
        The find the Grails tooling in the list below.

        Note: I just tried and it looks like the nightly update site has a problem at the moment.
        Someone is looking into it and trying to fix it.

        Further info relating to this bug.

        Grails will be putting out a Grails 2.0.3 shortly (plan is for tomorrow) to revert the changes they put into 2.0.2 that cause this trouble for STS users.

        Sorry for the inconvenience

        Kris

        Show
        Kris De Volder (c) added a comment - To use update site go to menu "Help >> Install new Software" paste update site URL in the "work with" box. The find the Grails tooling in the list below. Note: I just tried and it looks like the nightly update site has a problem at the moment. Someone is looking into it and trying to fix it. Further info relating to this bug. Grails will be putting out a Grails 2.0.3 shortly (plan is for tomorrow) to revert the changes they put into 2.0.2 that cause this trouble for STS users. Sorry for the inconvenience Kris

          People

          • Assignee:
            Kris De Volder (c)
            Reporter:
            Franjo Žilić
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: