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

时间:2015-05-13 06:46:22

标签: 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 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

1 个答案:

答案 0 :(得分:0)

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

我错误地在我的Domain Class中定义了一个导致错误的属性。

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

这是我的Domain Class中存在问题的一行。

static hasMany = [ attachments: long ]