I am very embarrassed since I got this exception below:
Code: Select all
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blSearchService' defined in resource loaded from byte array: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.broadleafcommerce.core.search.service.solr.SolrSearchServiceImpl]: Constructor threw exception; nested exception is java.io.FileNotFoundException: /var/folders/dl/bg2hg3k13hg8gv67mxbt7ht40000gn/T/simon/solrhome/solr-default.xml (Not a directory)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1051)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:955)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
... then
Caused by: java.io.FileNotFoundException: /var/folders/dl/bg2hg3k13hg8gv67mxbt7ht40000gn/T/simon/solrhome/solr-default.xml (Not a directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at org.broadleafcommerce.core.search.service.solr.SolrSearchServiceImpl.copyConfigToSolrHome(SolrSearchServiceImpl.java:166)
at org.broadleafcommerce.core.search.service.solr.SolrSearchServiceImpl.<init>(SolrSearchServiceImpl.java:126)
at org.broadleafcommerce.core.search.service.solr.SolrSearchServiceImpl.<init>(SolrSearchServiceImpl.java:213)
Two days ago, I was able to start demo site in jetty without any error, everything was working fine. But, now when I try to start it in jetty, this exception is always thrown. I saw that file is embedded in broadleaf-framework-3.0.5-GA.jar dependancy, so I naturally tried to copy/paste it in my class path (, but nothing I got the same exception.
1) Someone does know this issue ? I thought of a dependency issue (wrong version)?
2) If not for short term solution, how can I disable solr searching engine?
3) I don't understand, why it's trying to locate the solar-default.xml into /var/folders/dl/bg2hg3k13hg8gv67mxbt7ht40000gn/T/simon which is not a directory. If there anyone who knows utility of this folder? I'm on Mac OS 10.9.2.
Many thanks,
Simon.