【问题标题】:Update to 2.3.9 - Error executing script RunApp: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling更新到 2.3.9 - 执行脚本 RunApp 时出错:org/codehaus/groovy/runtime/typehandling/ShortTypeHandling
【发布时间】: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


    【解决方案1】:

    我删除了目标文件夹并运行grails,它运行成功。

    【讨论】:

    • 你是如何删除目标文件夹的?
    【解决方案2】:

    重复问题Groovy ShortTypeHandling ClassNotFoundException

    我怀疑任何插件的版本只兼容 Grails 版本2.4.0 及更高版本(Groovy 附带2.3.*)。

    【讨论】:

      【解决方案3】:

      如果删除目标文件夹对您不起作用,请在尝试再次运行您的项目之前使用 clean 和 compile 命令。

      【讨论】:

        猜你喜欢
        • 2015-06-18
        • 1970-01-01
        • 2015-09-28
        • 2017-08-31
        • 1970-01-01
        • 1970-01-01
        • 2012-02-14
        • 1970-01-01
        • 2013-11-18
        相关资源
        最近更新 更多