无法重启Liferay:无数BeanCreationException-s

时间:2013-05-27 19:52:13

标签: spring exception tomcat liferay

在重新启动一个长期工作的Liferay之后,我在启动期间遇到了很多例外(大约93个链式异常),最后会出现内存不足。

由于我的portlet开发,没有异常。可能是某些配置错误或其他什么。

可能是什么原因?

以下消息:

15:34:45,286 ERROR [ContextLoader:227] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.security.permission.ResourceActions' defined in class path resource [META-INF/util-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PortletLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.AccountLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.AccountService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.AddressLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.AddressService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.BrowserTrackerLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ClassNameLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ClassNameService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ClusterGroupLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.CMISRepositoryLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.CompanyLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.CompanyService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ContactLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ContactService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.CountryService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.EmailAddressLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.EmailAddressService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.GroupLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.GroupService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ImageLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ImageService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.LayoutLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice' defined in class path resource [META-INF/staging-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.LayoutService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.LayoutBranchLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.LayoutBranchService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.LayoutPrototypeLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.LayoutPrototypeService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.LayoutRevisionLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.LayoutRevisionService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.LayoutSetLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.LayoutSetService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.LayoutSetBranchLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.LayoutSetBranchService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.LayoutSetPrototypeLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.LayoutSetPrototypeService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.LayoutTemplateLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ListTypeService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.LockLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.MembershipRequestLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.MembershipRequestService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.OrganizationLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.OrganizationService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.OrgLaborLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.OrgLaborService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PasswordPolicyLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PasswordPolicyService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PasswordPolicyRelLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PasswordTrackerLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PermissionLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PermissionService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PhoneLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PhoneService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PluginSettingLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PluginSettingService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PortalLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PortalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PortalPreferencesLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PortletService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PortletItemLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PortletPreferencesLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.impl.PortletPreferencesLocalServiceStagingAdvice' defined in class path resource [META-INF/staging-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PortletPreferencesService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.QuartzLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.RegionService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ReleaseLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.RepositoryLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.RepositoryService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.RepositoryEntryLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ResourceLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ResourceService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ResourceActionLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ResourceBlockLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ResourceBlockService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ResourceBlockPermissionLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ResourceCodeLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ResourcePermissionLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ResourcePermissionService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ResourceTypePermissionLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.RoleLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.RoleService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ServiceComponentLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ShardLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.SubscriptionLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.TeamLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.TeamService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ThemeLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.ThemeService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.TicketLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.UserLocalService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.UserService' defined in class path resource [META-INF/portal-spring.xml]: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.mail.service.MailService' defined in class path resource [META-INF/mail-spring.xml]: Initialization of bean failed; nested exception is
java.lang.OutOfMemoryError: PermGen space

1 个答案:

答案 0 :(得分:1)

你需要增加你的permGen空间。

liferay / tomcat / bin / 打开Windows的 setenv.bat 或Linux操作系统的 setenv.sh

找到此参数 -XX:MaxPermSize 增加此参数的大小。

 set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=500m"