BroadleafCommerce / LegacyDemoSite

The New Broadleaf Commerce Demo Site
129 stars 626 forks source link

Context initialization failed #208

Closed hugolam008 closed 7 years ago

hugolam008 commented 7 years ago

When starting up the DemoSite from Intellij getting the following exception.

[ERROR] 17:07:22 ContextLoader - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCacheManager' defined in resource loaded from byte array: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: java.io.IOException: 拒绝访问。

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)

I followed the instructions in adrianb11's post:

Clone DemoSite repo Open up DemoSite/build.properties and set proper path for maven.home Run mvn clean install within DemoSite/ Navigate to DemoSite/site/ and run ant tomcat I can run it from the command line. The problem occurs when I try and run it from IntelliJ.

Any ideas?

phillipuniverse commented 7 years ago

@hugolam008 can you verify on our new starting point at https://github.com/BroadleafCommerce/CommunityDemo? It might be as simple as not having UTF-8 characters in your ehcache.xml.