gpt4 book ai didi

grails - "GrailsDomainException: Identity property not found, but required in domain class"仅在 WebSphere 7 上

转载 作者:行者123 更新时间:2023-12-02 15:49:42 25 4
gpt4 key购买 nike

当使用命令“grails run-app”启动我的 grails 2.5.3 应用程序时,它启动时没有问题。但是在 WebSphere 7 上启动它时,我收到以下错误:

context.GrailsContextLoaderListener - Error initializing the application: Error creating bean with name 'pluginManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.codehaus.groovy.grails.exceptions.GrailsDomainException: Identity property not found, but required in domain class [org.codehaus.groovy.grails.plugins.codecs.SHA1BytesCodec]

提到的类显然不是域类,但出于某种原因,grails 认为它​​是。

通常重新启动应用程序会起作用,但不再起作用了。这次我得到的只是让它提示一个不同的类(也不是域类,而是服务类)。

最佳答案

固定在 Grails 3.1.xGrails 2.5.x .

关于grails - "GrailsDomainException: Identity property not found, but required in domain class"仅在 WebSphere 7 上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41616489/

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