掲示板

Getting Out of Memory Errors when i start Liferay SO

12年前 に praveen orvakanti によって更新されました。

Getting Out of Memory Errors when i start Liferay SO

Junior Member 投稿: 51 参加年月日: 11/08/10 最新の投稿
Hi All,
Im getting a OutofMemory problem as well some other problem when i start Social Office. Please let me know if you have a solution for this.

Some excerpts from the command prompt:

Error1:

Loading file:/C:/apache-tomcat-6.0.29/webapps/so-portlet/WEB-INF/classes/service.properties
14:01:33,421 ERROR [PortletApplicationContext:80] org.springframework.beans.factory.parsing.BeanDefi
nitionParsingException: Configuration problem: Class that bean class [com.liferay.portal.spring.anno
tation.BeanReferenceAnnotationBeanPostProcessor] depends on not found
Offending resource: ServletContext resource [/WEB-INF/classes/META-INF/base-spring.xml]
Bean 'beanReferenceAnnotationBeanPostProcessor'; nested exception is java.lang.NoClassDefFoundError:
org/springframework/beans/factory/BeanFactoryAware
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cla
ss that bean class [com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor] d
epends on not found
Offending resource: ServletContext resource [/WEB-INF/classes/META-INF/base-spring.xml]
Bean 'beanReferenceAnnotationBeanPostProcessor'; nested exception is java.lang.NoClassDefFoundError:
org/springframework/beans/factory/BeanFactoryAware
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemRe
porter.java:68)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)



Error2:

at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortletApp(PortletHotDeployLis
tener.java:693)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortlet(PortletHotDeployListen
er.java:668)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployLis
tener.java:252)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListe
ner.java:129)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:
107)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._flushPrematureEvents(HotDeployUtil.ja
va:170)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.flushPrematureEvents(HotDeployUtil.jav
a:50)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:600)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4350)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4659)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
Exception in thread "org.springframework.scheduling.quartz.SchedulerFactoryBean#946d22_QuartzSchedul
erThread" java.lang.OutOfMemoryError: PermGen space
12年前 に praveen orvakanti によって更新されました。

RE: Getting Out of Memory Errors when i start Liferay SO

Junior Member 投稿: 51 参加年月日: 11/08/10 最新の投稿
Hi All,
I resolved the PermGen Space error for now. I just added/modified the following line to Catalina.bat file:

set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx512m -XX:MaxPermSize=256m

The PermGen Space error doesn’t appear now. The tomcat starts successfully.

But the other error still persists, i.e:

16:12:06,625 ERROR [PortletApplicationContext:80] org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Class that bean class [com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor] depends on not found
Offending resource: ServletContext resource [/WEB-INF/classes/META-INF/base-spring.xml]
Bean 'beanReferenceAnnotationBeanPostProcessor'; nested exception is java.lang.NoClassDefFoundError:
org/springframework/beans/factory/BeanFactoryAware
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Class that bean class [com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor] depends on not found
Offending resource: ServletContext resource [/WEB-INF/classes/META-INF/base-spring.xml]
Bean 'beanReferenceAnnotationBeanPostProcessor'; nested exception is java.lang.NoClassDefFoundError:
org/springframework/beans/factory/BeanFactoryAware
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)



What are we missing? From the error message I understand that we are missing some resource that the ‘bean-spring.xml’ file is pointing to. Is it the only issue or is there anything else?