NoClassDefFoundError:org / grails / compiler / gorm / GormEntityTransformation

迈克·德·汉

我目前正在将一个相当大的应用程序从mongodb:3.0.2升级到mongodb:5.0.1.RELEASE,并且在尝试执行以下操作时收到以下异常 grails package

Caused by: java.lang.NoClassDefFoundError: org/grails/compiler/gorm/GormEntityTransformation
    at org.codehaus.groovy.grails.compiler.gorm.GormTransformer.performInjection(GormTransformer.java:69)
    at org.codehaus.groovy.grails.compiler.gorm.GormTransformer.performInjectionOnAnnotatedClass(GormTransformer.java:78)
    at org.codehaus.groovy.grails.compiler.gorm.GormTransformer.performInjection(GormTransformer.java:61)

我按照以下说明使用了新的mongodb插件:http : //grails.github.io/grails-data-mapping/latest/mongodb/manual/guide/gettingStarted.html

我的环境:

  • 作业系统:Windows 7
  • 的JVM:1.8.0_66
  • 谷物:2.5.3
  • Groovy:2.4.4

使用grails 2.5.3创建了一个新的/干净的项目,并将其升级到mongodb插件的新版本,并且效果很好,所以我知道问题出在我的配置中,但是我已经用光了看。

我的构建配置:

dependencies {
    runtime 'org.springframework.data:spring-data-mongodb:1.8.1.RELEASE'

    compile "net.sf.ehcache:ehcache-core:2.4.8"

    test "org.gebish:geb-spock:$gebVersion"

    test "org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion"
    test "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion"
    test "org.seleniumhq.selenium:selenium-ie-driver:$seleniumVersion"
    test "org.seleniumhq.selenium:selenium-support:$seleniumVersion"
    test("org.seleniumhq.selenium:selenium-htmlunit-driver:$seleniumVersion") { exclude 'xml-apis' }

    build 'org.apache.httpcomponents:httpcore:4.3.2'
    build 'org.apache.httpcomponents:httpclient:4.3.2'
    runtime 'org.apache.httpcomponents:httpcore:4.3.2'
    runtime 'org.apache.httpcomponents:httpclient:4.3.2'

    compile 'org.apache.poi:poi:3.11'
    compile 'org.apache.poi:poi-ooxml:3.11'
    compile 'org.apache.poi:poi-ooxml-schemas:3.11'
    compile 'org.apache.poi:ooxml-schemas:1.1'

    compile "com.sun.jersey:jersey-bundle:1.6"

    compile 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.1'
    runtime 'xml-apis:xml-apis:1.4.01'

    compile 'org.apache.httpcomponents:httpmime:4.3.3'

    test 'org.powermock:powermock-api-mockito:1.6.2'

    compile 'org.apache.commons:commons-lang3:3.4'
}

plugins {
    build ":tomcat:7.0.55"

    compile ":scaffolding:2.1.2"
    compile ':cache:1.1.8'
    compile ":asset-pipeline:1.9.9"
    compile ":less-asset-pipeline:1.10.0"

    runtime ":database-migration:1.4.0"
    runtime ":jquery:1.11.1"
    runtime ':aws-sdk:1.9.22'

    compile(":mongodb:5.0.1.RELEASE");

    compile ":spring-security-core:2.0-RC4"
    compile ":fields:1.4"
    compile ":mail:1.0.7"

    compile ":phonenumbers:0.10"

    test "org.grails.plugins:geb:$gebVersion"
}
迈克·德·汉

我找到了。我还需要升级GORM,而不仅仅是gorm mongodb插件。这使我摆脱了问题。

dependencies {
    ...
    compile org.grails:grails-datastore-gorm:5.0.1.RELEASE'
    ...
}

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Grails:筛选gorm查询

来自分类Dev

grails gorm空字段

来自分类Dev

Grails Gorm查询限制

来自分类Dev

Grails读取GORM映射

来自分类Dev

ClassNotFoundException: org.grails.compiler.web.converters.RenderConverterTrait

来自分类Dev

GORM / Grails中的家谱模型?

来自分类Dev

Grails GORM继承最佳实践

来自分类Dev

Grails / GORM withCriteria搜索toString()

来自分类Dev

Grails GORM上的单亲关系

来自分类Dev

java.lang.IllegalAccessError:尝试访问字段org.grails.datastore.gorm.GormStaticApi.transactionManager

来自分类Dev

Grails / GORM:org.hibernate.AssertionFailure:xyz中的null id(发生异常后不要刷新Session)

来自分类Dev

Grails + GORM:GORM中默认的equals()实现是什么?

来自分类Dev

Grails + GORM:GORM中默认的equals()实现是什么?

来自分类Dev

Filtering GORM objects based on attribute grails

来自分类Dev

带有标准别名的Grails GORM

来自分类Dev

Grails,GORM,关系。可选的子记录

来自分类Dev

在Grails / Gorm中索引外键

来自分类Dev

没有调用Grails GORM beforeUpdate方法

来自分类Dev

Grails Gorm捕获外键约束错误

来自分类Dev

根据属性grails过滤GORM对象

来自分类Dev

Grails GORM:更改外键列名称

来自分类Dev

如何在Grails GORM中强制冲洗

来自分类Dev

在Grails(GORM)中,如何覆盖约束名称

来自分类Dev

在Grails / Gorm中索引外键

来自分类Dev

Grails Gorm捕获外键约束错误

来自分类Dev

Grails GORM-在父母之前救助孩子

来自分类Dev

如何应对Grails / GORM中破裂的关系?

来自分类Dev

使用Grails / GORM清除并恢复灯具数据

来自分类Dev

如何更改默认的Grails / GORM查找?