NoClassDefFoundError: org/codehaus/groovy/tools/GroovyStarter

When I try to run a Groovy Script from a Run configuration in my Grails 1.3.6 project, I get the following error:


/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -Dtools.jar=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/tools.jar -Dgroovy.home=/Users/sarbogast/.m2/repository/org/codehaus/gant/gant_groovy1.7 -Dgroovy.starter.conf=/Applications/IntelliJ IDEA 10.app/plugins/Groovy/lib/groovy-starter.conf -Dant.home=/opt/local/share/java/apache-ant -Dgant.home=/Users/sarbogast/.m2/repository/org/codehaus/gant/gant_groovy1.7 -Dfile.encoding=UTF-8 -classpath  org.codehaus.groovy.tools.GroovyStarter --conf /Applications/IntelliJ IDEA 10.app/plugins/Groovy/lib/groovy-starter.conf --classpath /Users/sarbogast/dev/vivansa/lxrcmcs/ics/backend/target/classes:/Users/sarbogast/dev/vivansa/lxrcmcs/ics/backend/lib/springws-0.5.1.zip:/Users/sarbogast/.ivy2/cache/xmlunit/xmlunit/jars/xmlunit-1.3.jar:/Users/sarbogast/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar:/Users/sarbogast/.m2/repository/commons-pool/commons-pool/1.3/commons-pool-1.3.jar:/Users/sarbogast/.m2/repository/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar:/Users/sarbogast/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar:/Users/sarbogast/.m2/repository/cglib/cglib-nodep/2.1_3/cglib-nodep-2.1_3.jar:/Users/sarbogast/.m2/repository/org/grails/grails-core/1.3.4/grails-core-1.3.4.jar:/Users/sarbogast/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar:/Users/sarbogast/.m2/repository/org/grails/grails-crud/1.3.4/grails-crud-1.3.4.jar:/Users/sarbogast/.m2/repository/org/slf4j/jul-to-slf4j/1.5.8/jul-to-slf4j-1.5.8.jar:/Users/sarbogast/.m2/repository/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.jar:/Users/sarbogast/.m2/repository/org/slf4j/jcl-over-slf4j/1.5.8/jcl-over-slf4j-1.5.8.jar:/Users/sarbogast/.m2/repository/org/codehaus/groovy/groovy-all/1.7.4/groovy-all-1.7.4.jar:/Users/sarbogast/.m2/repository/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.jar:/Users/sarbogast/.m2/repository/org/apache/ant/ant/1.7.1/ant-1.7.1.jar:/Users/sarbogast/.m2/repository/org/codehaus/gant/gant_groovy1.7/1.9.2/gant_groovy1.7-1.9.2.jar:/Users/sarbogast/.m2/repository/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar:/Users/sarbogast/.m2/repository/org/jboss/netty/netty/3.1.5.GA/netty-3.1.5.GA.jar:/Users/sarbogast/.m2/repository/org/coconut/forkjoin/jsr166y/070108/jsr166y-070108.jar:/Users/sarbogast/.m2/repository/org/codehaus/gpars/gpars/0.9/gpars-0.9.jar:/Users/sarbogast/.m2/repository/org/grails/grails-bootstrap/1.3.4/grails-bootstrap-1.3.4.jar:/Users/sarbogast/.ivy2/cache/org.hibernate/hibernate-annotations/jars/hibernate-annotations-3.4.0.GA.jar:/Users/sarbogast/.ivy2/cache/org.hibernate/hibernate-commons-annotations/jars/hibernate-commons-annotations-3.1.0.GA.jar:/Users/sarbogast/.ivy2/cache/org.hibernate/hibernate-core/jars/hibernate-core-3.3.1.GA.jar:/Users/sarbogast/.m2/repository/org/easyb/easyb/0.9.7/easyb-0.9.7.jar:/Users/sarbogast/.m2/repository/javax/servlet/jstl/1.2/jstl-1.2.jar:/Users/sarbogast/.m2/repository/ojdbc/ojdbc/14/ojdbc-14.jar:/Users/sarbogast/.m2/repository/net/sf/ehcache/ehcache-core/1.7.1/ehcache-core-1.7.1.jar:/Users/sarbogast/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar:/Users/sarbogast/.m2/repository/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar:/Users/sarbogast/.m2/repository/org/hibernate/hibernate-ehcache/3.3.1.GA/hibernate-ehcache-3.3.1.GA.jar:/Users/sarbogast/.m2/repository/org/aspectj/aspectjrt/1.6.8/aspectjrt-1.6.8.jar:/Users/sarbogast/.m2/repository/org/aspectj/aspectjweaver/1.6.8/aspectjweaver-1.6.8.jar:/Users/sarbogast/.m2/repository/javassist/javassist/3.11.0.GA/javassist-3.11.0.GA.jar:/Users/sarbogast/.m2/repository/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar:/Users/sarbogast/.m2/repository/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar:/Users/sarbogast/.m2/repository/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar:/Users/sarbogast/.m2/repository/javax/transaction/jta/1.1/jta-1.1.jar:/Users/sarbogast/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar:/Users/sarbogast/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar:/Users/sarbogast/.m2/repository/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA.jar:/Users/sarbogast/.m2/repository/org/grails/grails-gorm/1.3.4/grails-gorm-1.3.4.jar:/Users/sarbogast/.m2/repository/xpp3/xpp3_min/1.1.3.4.O/xpp3_min-1.1.3.4.O.jar:/Users/sarbogast/.m2/repository/opensymphony/sitemesh/2.4/sitemesh-2.4.jar:/Users/sarbogast/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar:/Users/sarbogast/.m2/repository/commons-el/commons-el/1.0/commons-el-1.0.jar:/Users/sarbogast/.m2/repository/org/grails/grails-web/1.3.4/grails-web-1.3.4.jar:/Users/sarbogast/.m2/repository/org/grails/grails-resources/1.3.4/grails-resources-1.3.4.jar:/Users/sarbogast/.m2/repository/bouncycastle/bcprov-jdk14/136/bcprov-jdk14-136.jar:/Users/sarbogast/.m2/repository/bouncycastle/bcmail-jdk14/136/bcmail-jdk14-136.jar:/Users/sarbogast/.m2/repository/com/lowagie/itext/2.1.0/itext-2.1.0.jar:/Users/sarbogast/.m2/repository/org/xhtmlrenderer/core-renderer/R8pre2/core-renderer-R8pre2.jar:/Users/sarbogast/.m2/repository/radeox/radeox/1.0-b2/radeox-1.0-b2.jar:/Users/sarbogast/.m2/repository/org/grails/grails-docs/1.3.4/grails-docs-1.3.4.jar:/Users/sarbogast/.m2/repository/org/grails/grails-spring/1.3.4/grails-spring-1.3.4.jar:/Users/sarbogast/.m2/repository/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar:/Users/sarbogast/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar:/Users/sarbogast/.m2/repository/commons-digester/commons-digester/1.6/commons-digester-1.6.jar:/Users/sarbogast/.m2/repository/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar:/Users/sarbogast/.m2/repository/commons-validator/commons-validator/1.3.1/commons-validator-1.3.1.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-webmvc/3.0.3.RELEASE/spring-webmvc-3.0.3.RELEASE.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-web/3.0.3.RELEASE/spring-web-3.0.3.RELEASE.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-oxm/3.0.3.RELEASE/spring-oxm-3.0.3.RELEASE.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-orm/3.0.3.RELEASE/spring-orm-3.0.3.RELEASE.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-jms/3.0.3.RELEASE/spring-jms-3.0.3.RELEASE.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-tx/3.0.3.RELEASE/spring-tx-3.0.3.RELEASE.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-jdbc/3.0.3.RELEASE/spring-jdbc-3.0.3.RELEASE.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-instrument/3.0.3.RELEASE/spring-instrument-3.0.3.RELEASE.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-context-support/3.0.3.RELEASE/spring-context-support-3.0.3.RELEASE.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-aspects/3.0.3.RELEASE/spring-aspects-3.0.3.RELEASE.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-test/3.0.3.RELEASE/spring-test-3.0.3.RELEASE.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-expression/3.0.3.RELEASE/spring-expression-3.0.3.RELEASE.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-beans/3.0.3.RELEASE/spring-beans-3.0.3.RELEASE.jar:/Users/sarbogast/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-aop/3.0.3.RELEASE/spring-aop-3.0.3.RELEASE.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-context/3.0.3.RELEASE/spring-context-3.0.3.RELEASE.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-asm/3.0.3.RELEASE/spring-asm-3.0.3.RELEASE.jar:/Users/sarbogast/.m2/repository/org/springframework/spring-core/3.0.3.RELEASE/spring-core-3.0.3.RELEASE.jar:/Users/sarbogast/.ivy2/cache/org.hibernate/hibernate-ehcache/jars/hibernate-ehcache-3.3.1.GA.jar:/Users/sarbogast/.ivy2/cache/dom4j/dom4j/jars/dom4j-1.6.1.jar:/Users/sarbogast/.ivy2/cache/antlr/antlr/jars/antlr-2.7.6.jar:/Users/sarbogast/.ivy2/cache/javassist/javassist/jars/javassist-3.11.0.GA.jar:/Users/sarbogast/.ivy2/cache/ojdbc/ojdbc/jars/ojdbc-14.jar:/Users/sarbogast/.m2/repository/log4j/log4j/1.2.14/log4j-1.2.14.jar:/Users/sarbogast/.m2/repository/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8.jar:/Users/sarbogast/dev/vivansa/lxrcmcs/ics/classes/production/ics-backend-grailsPlugins --main gant.Gant --file /Users/sarbogast/dev/vivansa/lxrcmcs/ics/backend/scripts/ImportBcl08.groovy
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/groovy/tools/GroovyStarter
Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.tools.GroovyStarter
 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)

Process finished with exit code 1


It used to work fine with Grails 1.3.5. By the way, I'm using IntelliJ 10.0.0.1 (Build #99.32)

Is that a known bug or should I configure something special?

1 comment
Comment actions Permalink

Sorry for the late answer. Just tried, and it works fine for me. Did you try the 10.0.2 EAPs, do they have the same problem?

0

Please sign in to leave a comment.