[英]Error creating bean with name 'pluginManager' defined in ServletContext resource
I got the following error while deploying my WAR file in tomcat. 在tomcat中部署WAR文件时出现以下错误。 Can someone tell me what i should do.
有人可以告诉我该怎么做。 I
一世
I tried increasing the heap-size but nothing worked. 我尝试增加堆大小,但没有任何效果。
Jul 03, 2014 6:44:20 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Jul 03, 2014 6:44:27 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jul 03, 2014 6:45:54 AM org.apache.catalina.core.StandardContext listenerStart
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 [HibernateGrailsPlugin]!
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.codehaus.groovy.grails.exceptions.NewInstanceCreationException: Could not create a new instance of class [HibernateGrailsPlugin]!
... 5 more
Caused by: java.lang.OutOfMemoryError: Java heap space
Jul 03, 2014 6:59:15 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Jul 03, 2014 6:59:17 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jul 03, 2014 8:03:16 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Jul 03, 2014 8:03:19 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Java command line parameters Java命令行参数
-Xms: initial heap size -Xmx: Maximum heap size -Xms:初始堆大小-Xmx:最大堆大小
if you are using Tomcat. 如果您使用的是Tomcat。 Update CATALINA_OPTS environment variable
更新CATALINA_OPTS环境变量
export CATALINA_OPTS=-Xms16m -Xmx256m; 出口CATALINA_OPTS = -Xms16m -Xmx256m;
The above answer i have taken it from the below link. 上面的答案,我已经从下面的链接。 Please refer the below link for more info
请参考以下链接以获取更多信息
Error creating bean with name 'pluginManager' defined in ServletContext resource 创建在ServletContext资源中定义的名称为'pluginManager'的bean时出错
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.