Grails 运行运行应用程序:创建名为';pluginManager';

Grails 运行运行应用程序:创建名为';pluginManager';,grails,Grails,当我在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 Grai

当我在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

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

我在域类中错误地定义了一个属性,这导致了错误

通过阅读错误,我没有想到域类定义中有错误

这是我的域类中有问题的一行

static hasMany = [ attachments: long ]