【发布时间】:2014-07-23 07:39:34
【问题描述】:
我正在将 grails 从 2.3.7 更新到 2.3.9 并且出现错误
执行脚本 RunApp 时出错: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling。
这里是 run-app --stacktrace --verbose :
|加载 Grails 2.3.9
|配置类路径
.
|环境设置为开发
..................................
|打包 Grails 应用程序
...........
|编译1个源文件
[groovyc] 将 1 个源文件编译为 Z:\future13_grails\cerp\target\classes
.......................错误
|
执行脚本 RunApp 时出错: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling
java.lang.NoClassDefFoundError: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling
在 org.grails.plugins.tomcat.TomcatServer.(TomcatServer.groovy:81)
在 org.grails.plugins.tomcat.InlineExplodedTomcatServer.(InlineExplodedTomcatServer.groovy)
在 org.grails.plugins.tomcat.TomcatServerFactory.createInline(TomcatServerFactory.groovy:38)
在 org.codehaus.groovy.grails.project.container.GrailsProjectRunner.runInline(GrailsProjectRunner.groovy:183)
在 org.codehaus.groovy.grails.project.container.GrailsProjectRunner.runApp(GrailsProjectRunner.groovy:119) 在 org.codehaus.groovy.grails.project.container.GrailsProjectRunner$runApp$0.call(未知 来源)
在 org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
在 org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
...
错误 |执行脚本 RunApp 时出错: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling
这里是 BuildConfig.groovy
...插件{ // 仅用于构建系统的插件 构建':tomcat:7.0.52.1'
// plugins for the compile step compile ':scaffolding:2.0.3' compile ':cache:1.1.1' compile ":spring-security-core:2.0-RC2" compile ":searchable:0.6.6" // plugins needed at runtime but not for compilation runtime ':hibernate:3.6.10.15' // ':hibernate4:4.3.5.3' for Hibernate 4 runtime ':database-migration:1.4.0' runtime ":jquery:1.10.2" runtime ':resources:1.2.8' // Uncomment these (or add new ones) to enable additional resources capabilities //runtime ":zipped-resources:1.0.1" //runtime ":cached-resources:1.1" //runtime ":yui-minify-resources:0.1.5" runtime ":cors:1.1.2" } ...
【问题讨论】:
标签: grails