Friday, April 24, 2009

Liferay Extension Environment Protip

If you aren't developing portlets or services in the ext environment, don't delete the reports example from your ext folder.  You will get errors like:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionAdvice' defined in class path resource [META-INF/base-spring.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/hibernate-spring.xml]: Cannot resolve reference to bean 'liferayHibernateSessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayHibernateSessionFactory' defined in class path resource [META-INF/hibernate-spring.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: entity class not found: com.ext.portlet.reports.model.impl.ReportsEntryImpl

Got the info from this forum thread. It looks like some oddity about the way they're using AOP.

No comments: