Announcement Announcement Module
Collapse
No announcement yet.
java.lang.NoClassDefFoundError on Grails Run-App Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • java.lang.NoClassDefFoundError on Grails Run-App

    I get the following error when I execute run-app from within STS 2.3. The "Envinronment" tab has the GRAILS_HOME correctly defined. By the error message it seems like the path is getting mangled somehow.

    The really strange thing is that this used to work for me in STS 2.3 and then suddenly one day it stopped. Not sure what happened. Any clues?


    java.lang.NoClassDefFoundError: Files\\springsource\\grails-1/2/1\\
    Caused by: java.lang.ClassNotFoundException: Files\\springsource\\grails-1.2.1\\
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 52)
    at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:320)
    Exception in thread "main"

  • #2
    wenner,

    did you update your STS to any nightly build recently? What is the installation directory of STS and Grails? Where is your workspace?

    Once if have those details, I can try to re-create.

    Regards, Christian

    Comment


    • #3
      Resolved Itself

      Hey,

      It looks like my error has mysteriously gone away. For reference, answers below.

      Did you update your STS to any nightly build recently? No
      What is the installation directory of STS and Grails? C:\Program Files\Springsource
      Where is your workspace? C:\Users\<self>\workspace

      Thanks!

      Comment


      • #4
        wenner,

        glad this is solved but it sounds strange that it fixed itself. Please keep me updated if this comes up again.

        Regards, Christian

        Comment

        Working...
        X