使用Windows 7,Grails 2.3.7,java 1.7(Oracle)..我的应用程序曾经通过run-app运行现在它根本不会运行..没有grails脚本命令正在工作(清理,编译..)。它相当大的应用程序。我重新创建了应用程序(创建了另一个应用程序并将所有代码迁移到它)并且它运行正常 - 然后它停止了与之前相同的问题..
Error executing script Clean: _GrailsClasspath_groovy$_run_closure1 (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.lang.NoClassDefFoundError: _GrailsClasspath_groovy$_run_closure1
at _GrailsClasspath_groovy.run(_GrailsClasspath_groovy:39)
at _GrailsClasspath_groovy$run.call(Unknown Source)
at _GrailsEvents_groovy$run.call(Unknown Source)
at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
at _GrailsEvents_groovy.run(_GrailsEvents_groovy:32)
at _GrailsEvents_groovy$run.call(Unknown Source)
at _GrailsClean_groovy$run.call(Unknown Source)
at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
at _GrailsClean_groovy.run(_GrailsClean_groovy:29)
at _GrailsClean_groovy$run.call(Unknown Source)
at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
at Clean.run(Clean.groovy:25)
at Clean$run.call(Unknown Source)
at gant.Gant.prepareTargets(Gant.groovy:607)
Caused by: java.lang.ClassNotFoundException: _GrailsClasspath_groovy$_run_closure1
... 17 more
我查了.grails.2.3.7并清除了所有版本的.slcache我能找到它仍然不会运行..任何想法? ..还尝试使用Intellij作为现有项目导入,但仍然没有..
答案 0 :(得分:3)
删除了我在<app-name>/target/projects/<project-name>/work
下找到的scriptCache文件夹。跑grails clean
并重新开始营业!