1.5.0-M2 Demo Fails to Start
Posted: Tue Nov 08, 2011 5:35 pm
I am flowing instructions on http://www.broadleafcommerce.org/confluence/display/core/Trying+out+the+Demo+and+Admin+Applications for trying out a demo. I used:
java -jar broadleaf-demo-launcher-1.5.0-M2.jar
but it fails to start up due to the following error:
Caused by: net.sf.ehcache.CacheException: Caches cannot be added by name when default cache config is not specified in the config. Please add a default cache config in the configuration.
broadleafdemo.war has bl-override-ehcache.xml which only defines two caches for blStandardElements and blOrderElements. The failure in cache prevents application from setting up entityManagerFactory:
[java] 2011-11-08 17:14:08.632:WARN::Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in resource loaded from byte array: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: blPU] Unable to build EntityManagerFactory:
[java] at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:74)
There is no information on the reference above to create cache configuration. Should I be configuring something or this an oversight and demo should have a default cache setup in bl-override-ehcache.xml ?
Thank you.
java -jar broadleaf-demo-launcher-1.5.0-M2.jar
but it fails to start up due to the following error:
Caused by: net.sf.ehcache.CacheException: Caches cannot be added by name when default cache config is not specified in the config. Please add a default cache config in the configuration.
broadleafdemo.war has bl-override-ehcache.xml which only defines two caches for blStandardElements and blOrderElements. The failure in cache prevents application from setting up entityManagerFactory:
[java] 2011-11-08 17:14:08.632:WARN::Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in resource loaded from byte array: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: blPU] Unable to build EntityManagerFactory:
[java] at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:74)
There is no information on the reference above to create cache configuration. Should I be configuring something or this an oversight and demo should have a default cache setup in bl-override-ehcache.xml ?
Thank you.