I inherited a slightly modified (using the ext environment) Liferay 5.2.2. Due to memory issues we needed to move up to Windows 64-bit. I've got Tomcat 6 running as a service on a 64-bit JVM but when I go to deploy Liferay (through the ext build file) I seem to get a recursive bean reference until I get a StackOverflowError. I tried bumping the stack size WAY up (x1000) but that didn't stop the overflow. It looks like it's in a recursive instantiation loop or something. I've seen similar threads elsewhere, but none of their solutions helped.
Attached is the Tomcat log (edited for readability). Below is a brief snip from the same log file. I can provide config files if you tell me which ones you want to see.
KevinS
Loading jar:file:/C:/Apache/apache-tomcat-6.0.26/webapps/liferay/WEB-INF/lib/portal-impl.jar!/system.properties
Loading file:/C:/Apache/apache-tomcat-6.0.26/webapps/liferay/WEB-INF/classes/system-ext.properties
Loading jar:file:/C:/Apache/apache-tomcat-6.0.26/webapps/liferay/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/C:/Apache/apache-tomcat-6.0.26/webapps/liferay/WEB-INF/classes/portal-ext.properties
11:57:48,841 INFO [DialectDetector:64] Determining dialect for MySQL 5
11:57:48,935 INFO [DialectDetector:97] Using dialect org.hibernate.dialect.MySQLDialect
Loading jar:file:/C:/Apache/apache-tomcat-6.0.26/webapps/liferay/WEB-INF/lib/portal-impl.jar!/captcha.properties
11:57:51,373 INFO [PortalImpl:243] Portal lib directory /C:/Apache/apache-tomcat-6.0.26/webapps/liferay/WEB-INF/lib/
11:57:52,607 ERROR [ContextLoader:215] Context initialization failed
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'messageListener.scheduler' defined in class path resource [META-INF/messaging-spring.xml]:
Cannot resolve reference to bean 'com.liferay.portal.kernel.scheduler.SchedulerEngine' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.kernel.scheduler.SchedulerEngine':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.QuartzLocalService.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.AccountLocalService.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.AccountService.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.AccountPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.AddressPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.ClassNamePersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.CompanyPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.ContactPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.CountryPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.EmailAddressPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.GroupPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.ImagePersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.LayoutPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.LayoutSetPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.ListTypePersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.MembershipRequestPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.OrganizationPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.OrgGroupPermissionPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.OrgGroupRolePersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.OrgLaborPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.PasswordPolicyPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.PasswordPolicyRelPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.PasswordTrackerPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.PermissionPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.PhonePersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.PluginSettingPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.PortletPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.PortletPreferencesPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.RegionPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.ReleasePersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.ResourcePersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.ResourceCodePersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.RolePersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.ServiceComponentPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.PortletItemPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.SubscriptionPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.service.persistence.UserPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portlet.messageboards.service.persistence.MBBanPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portlet.social.service.persistence.SocialActivityPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portlet.social.service.persistence.SocialRelationPersistence.impl':
Injection of BeanReference fields failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portlet.social.service.persistence.SocialRequestPersistence.impl' defined in class path resource [META-INF/portal-spring.xml]:
Instantiation of bean failed; nested exception is java.lang.StackOverflowError
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:479)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
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)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by:
[SNIP]
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portlet.social.service.persistence.SocialRequestPersistence.impl' defined in class path resource [META-INF/portal-spring.xml]:
Instantiation of bean failed; nested exception is java.lang.StackOverflowError
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)
at com.liferay.portal.spring.annotation.BeanReferenceElement.getResourceToInject(BeanReferenceElement.java:62)
at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:180)
at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
at com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor.postProcessAfterInstantiation(BeanReferenceAnnotationBeanPostProcessor.java:65)
... 742 more
Caused by:
java.lang.StackOverflowError
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1503)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getDeclaredConstructor(Class.java:1985)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:54)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
... 756 more
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
Please sign in to flag this as inappropriate.