Foren
Error while starting liferay 4.2 bean creation exception
kavitha sama, geändert vor 8 Jahren.
Error while starting liferay 4.2 bean creation exception
New Member Beiträge: 2 Beitrittsdatum: 02.05.12 Neueste Beiträge
Hi All,
Iam trying to connect to oracle 12c database with hiberante. I received the following errors. could anyone please help what could be went wrong .Please suggest.
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PortletPreferencesLocalService.transaction' defined in class path resource [META-INF/portal-spring-professional.xml]: Cannot resolve reference to bean 'liferayTransactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayTransactionManager' defined in class path resource [META-INF/counter-spring-professional.xml]: Cannot resolve reference to bean 'liferaySessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in class path resource [META-INF/counter-spring-professional.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.type.TypeFactory
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayTransactionManager' defined in class path resource [META-INF/counter-spring-professional.xml]: Cannot resolve reference to bean 'liferaySessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in class path resource [META-INF/counter-spring-professional.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.type.TypeFactory
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in class path resource [META-INF/counter-spring-professional.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.type.TypeFactory
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.type.TypeFactory
Thanks ,
Kavitha Sama
Iam trying to connect to oracle 12c database with hiberante. I received the following errors. could anyone please help what could be went wrong .Please suggest.
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.service.PortletPreferencesLocalService.transaction' defined in class path resource [META-INF/portal-spring-professional.xml]: Cannot resolve reference to bean 'liferayTransactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayTransactionManager' defined in class path resource [META-INF/counter-spring-professional.xml]: Cannot resolve reference to bean 'liferaySessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in class path resource [META-INF/counter-spring-professional.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.type.TypeFactory
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayTransactionManager' defined in class path resource [META-INF/counter-spring-professional.xml]: Cannot resolve reference to bean 'liferaySessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in class path resource [META-INF/counter-spring-professional.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.type.TypeFactory
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in class path resource [META-INF/counter-spring-professional.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.type.TypeFactory
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.type.TypeFactory
Thanks ,
Kavitha Sama
David H Nebinger, geändert vor 8 Jahren.
RE: Error while starting liferay 4.2 bean creation exception
Liferay Legend Beiträge: 14916 Beitrittsdatum: 02.09.06 Neueste Beiträge
Liferay 4.2? Seriously? I doubt there's anyone in the forums actively using 4.2 for anything these days besides a reference in their resume.
The exception seems kinda clear, though:
Means you're missing the hibernate jar.
The exception seems kinda clear, though:
kavitha sama:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.type.TypeFactory
Means you're missing the hibernate jar.