Results 1 to 4 of 4

Thread: java.lang.NoClassDefFoundError on Grails Run-App

  1. #1
    Join Date
    Feb 2010
    Posts
    4

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    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
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  3. #3
    Join Date
    Feb 2010
    Posts
    4

    Default 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!

  4. #4
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    wenner,

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

    Regards, Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •