Grails Development

Hi,
I have an existing grails app that runs fine.  I'm trying to create an existing IntelliJ project from this app.  After doing this and that, I finally got the IDE to recognize the project.  But that's it.  I cannot compile, make or run the app within IntelliJ.  I do not understand the concepts of "modules" and "facets".  Why add bogus stuff to something that works on the command line?  Furthermore, when I "synchronize grails dependencies" I get the following:

Exception in thread "main" java.lang.NoClassDefFoundError: groovy/lang/GroovyObject
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at org.jetbrains.groovy.grails.GrailsDependenciesGetter.main(GrailsDependenciesGetter.java:31)
Caused by: java.lang.ClassNotFoundException: groovy.lang.GroovyObject
    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:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    ... 13 more

My grails project uses several grails plugins.  During compile, plugin classes cannot be found, spring classes cannot be found, etc, etc.

My point is, why has IntelliJ taken something that works on the command line, like grails, and has made it so complicated to develop for in the IDE?  I don't get it.  Does this stuff even work?

IDE version:  9.0.2 (Commercial)

Thanks in advance for any help.

3 comments
Comment actions Permalink

Nevermind, solved the problem ... it's called Eclipse.  Worked straight out of the box with my existing grails project, no fuss.

0
Comment actions Permalink

In most circumstances the functionality you refer to works fine, so
probably there's something specific about your configuration. If you're
still in mood to give the details, we could understand the roots of the
problem and fix it. Which OS are you using? How exactly did you import
the Grails application into IDEA? Did you use 'New Project/Module' |
Import existing project | Import Grails application from sources or
something else? Were you asked to point to the Grails SDK installation,
did you do that? Were you asked to point to the JDK installation, did
you do that? If you just open your project in IDEA, go to Project
Structure settings, find your Grails application there and open
'Dependencies' tab, do you see a library corresponding to your Grails
installation (with all the jars inside)?

0
Comment actions Permalink

I have this problem also.  Grails sdk not found.  I have 36 plugin and everytime I open intellij I have to reassign the grails version to these plugins.  It is frustrating.

0

Please sign in to leave a comment.