gpt4 book ai didi

grails - 更新至 2.3.9 - 执行脚本 RunApp 时出错 : org/codehaus/groovy/runtime/typehandling/ShortTypeHandling

转载 作者:行者123 更新时间:2023-12-02 05:48:46 26 4
gpt4 key购买 nike

我将 grails 从 2.3.7 更新到 2.3.9,但出现错误

Error executing script RunApp: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling.

这里是 run-app --stacktrace --verbose :

|Loading Grails 2.3.9

|Configuring classpath

.

|Environment set to development

.................................

|Packaging Grails application

...........

|Compiling 1 source files

[groovyc] Compiling 1 source file to Z:\future13_grails\cerp\target\classes

.....................................Error

|

Error executing script RunApp: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling

java.lang.NoClassDefFoundError: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling

at org.grails.plugins.tomcat.TomcatServer.(TomcatServer.groovy:81)

at org.grails.plugins.tomcat.InlineExplodedTomcatServer.(InlineExplodedTomcatServer.groovy)

at org.grails.plugins.tomcat.TomcatServerFactory.createInline(TomcatServerFactory.groovy:38)

at org.codehaus.groovy.grails.project.container.GrailsProjectRunner.runInline(GrailsProjectRunner.groovy:183)

at org.codehaus.groovy.grails.project.container.GrailsProjectRunner.runApp(GrailsProjectRunner.groovy:119) at org.codehaus.groovy.grails.project.container.GrailsProjectRunner$runApp$0.call(Unknown Source)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)

...

Error | Error executing script RunApp: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling

这是 BuildConfig.groovy

... plugins { // plugins for the build system only build ':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,它运行成功。

关于grails - 更新至 2.3.9 - 执行脚本 RunApp 时出错 : org/codehaus/groovy/runtime/typehandling/ShortTypeHandling,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24007209/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com