简体   繁体   English

创建在ServletContext资源中定义的名称为'pluginManager'的bean时出错

[英]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.

相关问题 创建在ServletContext资源中定义的名称为'entityManagerFactory'的bean时出错(持久性错误) - Error creating bean with name 'entityManagerFactory' defined in ServletContext resource (persistance errors) 创建在ServletContext资源中定义的名称为'sessionFactory'的bean时出错 - Error creating bean with name 'sessionFactory' defined in ServletContext resource 创建在ServletContext资源中定义的名称为'jsonView'的bean时出错 - Error creating bean with name 'jsonView' defined in ServletContext resource 创建在ServletContext资源中定义的名称为'grailsApplication'的bean时出错 - Error creating bean with name 'grailsApplication' defined in ServletContext resource 创建在ServletContext资源中定义的名称为“ interceptor”的bean时出错 - Error creating bean with name 'interceptor' defined in ServletContext resource 创建在ServletContext资源中定义的名称为'entityManagerFactory'的bean时出错 - Error creating bean with name 'entityManagerFactory' defined in ServletContext resource 创建在ServletContext中定义的名称为“ authenticationmanager”的bean时出错 - Error creating bean with name 'authenticationmanager' defined in ServletContext BeanCreationException:创建在ServletContext中定义的名称为“ /”的bean时出错 - BeanCreationException: Error creating bean with name '/' defined in ServletContext 创建在ServletContext中定义的名称为“ dataSource”的bean时出错 - Error creating bean with name 'dataSource' defined in ServletContext 创建applicationContext.xml时出错:创建在ServletContext资源中定义名为'sessionFactory'的bean时出错 - Error creating applicationContext.xml: Error creating bean with name 'sessionFactory' defined in ServletContext resource
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM