运行ning 运行-app:创建名称为 'pluginManager' 的 bean 时出错

running run-app: Error creating bean with name 'pluginManager'

当我在 STS 中 运行 我的 Grails 应用程序时,出现以下错误。 在那之前我尝试了不同的

grails.servlet.version = "2.5"

我从 2.5 更改为 3.0,然后又从 3.0 更改回 2.5。

当我 运行 来自 STS 的应用程序时会发生这种情况:

|Loading Grails 2.3.5
|Configuring classpath
.
|Environment set to development
.................................
|Packaging Grails application
.........................................................................................................2015-05-13 08:28:41,492 [main] INFO  conf.Config  - catalinaBase: D:\tomcat7
2015-05-13 08:28:41,492 [main] INFO  conf.Config  - catalinaBase: D:\tomcat7
..
|Running Grails application
|Server running. Browse to http://localhost:8080/
2015-05-13 08:29:04,495 [localhost-startStop-1] INFO  conf.Config  - catalinaBase: D:\tomcat7
2015-05-13 08:29:15,977 [localhost-startStop-1] ERROR context.ContextLoader  - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.reflect.GenericSignatureFormatError
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.reflect.GenericSignatureFormatError
    ... 5 more
2015-05-13 08:29:15,979 [localhost-startStop-1] ERROR context.GrailsContextLoader  - 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 java.lang.reflect.GenericSignatureFormatError
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.reflect.GenericSignatureFormatError
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.reflect.GenericSignatureFormatError
    ... 5 more
Error |
Forked Grails VM exited with error

只是想让你知道。我发现了问题:

我在我的域 Class 中错误地定义了 属性,这导致了错误。

通过阅读错误,我没有想到我的域 Class 定义中存在错误。

那是我的域中有问题的行 Class。

static hasMany = [ attachments: long ]