【发布时间】:2013-05-27 12:47:47
【问题描述】:
当我尝试部署我的 war 文件时,这个错误已经有一段时间了。我尝试搜索,但似乎没有任何帮助。当我在我的系统上的 tomcat 上部署时,war 文件有效,但当我在另一个系统上部署时,我收到此错误:
SEVERE: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener
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 org.codehaus.groovy.grails.exceptions.NewInstanceCreationException: Could not create a new instance of class [SearchableGrailsPlugin]!
at java.lang.Thread.run(Unknown Source)
Caused by: org.codehaus.groovy.grails.exceptions.NewInstanceCreationException: Could not create a new instance of class [SearchableGrailsPlugin]!
【问题讨论】:
-
您使用的是什么版本的 Grails,构建和部署系统上的 Tomcat 和 Java 是什么版本?
-
Apache Tomcat/6.0.37 JVM 版本 1.6.0_33-b05 Grails 版本 1.3.5 用于部署系统。 (Windows 7 机器)。用于构建系统的 Apache Tomcat/6.0.37 JVM 版本 1.7.0_03-b05 Grails 版本 1.3.5。 (Ubuntu)。这可能是问题吗?我会检查并回来