Problem switching back and forth between 1.3.9 and 2.2 grails in IDEA

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem switching back and forth between 1.3.9 and 2.2 grails in IDEA

a.shneyderman
Hi, all!

I was trying out grails 2.2 on a project that is currently running on
grails 1.3.9 in prod. When I switch back I get this trace whenever I
do anything grails realted:

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
-Dgrails.home=/Users/alex/Library/grails-1.3.9
-Dbase.dir=/Users/alex/projects/myproject
-Dtools.jar=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/tools.jar
-Dgroovy.starter.conf=/Users/alex/Library/grails-1.3.9/conf/groovy-starter.conf
-Xmx768M -Xms768M -XX:MaxPermSize=256m -XX:PermSize=256m
-Dfile.encoding=UTF-8 -classpath
/Users/alex/Library/grails-1.3.9/dist/grails-bootstrap-1.3.9.jar
org.codehaus.groovy.grails.cli.support.GrailsStarter --main
org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf
/Users/alex/Library/grails-1.3.9/conf/groovy-starter.conf
cleanException 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)


Does anyone have a clue as to what's wrong?

I invalidated IDEA caches and I nuked projects directory in .grails
cache. Still no luck in starting up the project in grails 1.3.9 (after
trying to run it once with 2.2.0).

This is in IDEA 12.0.2.

Any help is greatly appreciated.

Cheers,
Alex.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Problem switching back and forth between 1.3.9 and 2.2 grails in IDEA

a.shneyderman
Never mind. Nuclear option exercised on .idea directory in the root of
the project and re-creation
of the project itself worked wonders for me.

On Thu, Jan 24, 2013 at 6:17 AM, Alex Shneyderman
<[hidden email]> wrote:

> Hi, all!
>
> I was trying out grails 2.2 on a project that is currently running on
> grails 1.3.9 in prod. When I switch back I get this trace whenever I
> do anything grails realted:
>
> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
> -Dgrails.home=/Users/alex/Library/grails-1.3.9
> -Dbase.dir=/Users/alex/projects/myproject
> -Dtools.jar=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/tools.jar
> -Dgroovy.starter.conf=/Users/alex/Library/grails-1.3.9/conf/groovy-starter.conf
> -Xmx768M -Xms768M -XX:MaxPermSize=256m -XX:PermSize=256m
> -Dfile.encoding=UTF-8 -classpath
> /Users/alex/Library/grails-1.3.9/dist/grails-bootstrap-1.3.9.jar
> org.codehaus.groovy.grails.cli.support.GrailsStarter --main
> org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf
> /Users/alex/Library/grails-1.3.9/conf/groovy-starter.conf
> cleanException 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)
>
>
> Does anyone have a clue as to what's wrong?
>
> I invalidated IDEA caches and I nuked projects directory in .grails
> cache. Still no luck in starting up the project in grails 1.3.9 (after
> trying to run it once with 2.2.0).
>
> This is in IDEA 12.0.2.
>
> Any help is greatly appreciated.
>
> Cheers,
> Alex.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email