當我試圖部署我的戰爭文件時,我一直有這個錯誤。我試圖尋找,但似乎沒有任何幫助。戰爭文件的工作,當我部署在我的系統上的tomcat,但是當我在另一個系統上部署我得到這個錯誤:部署錯誤無法創建類[SearchableGrailsPlugin]的新實例!
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針對deploypment系統的Grails版本1.3.5。 (Windows 7機器)。 Apache Tomcat/6.0.37 JVM版本1.7.0_03-b05構建系統的Grails版本1.3.5。 (Ubuntu的)。 這可能是問題嗎?我會檢查並取回 –