-
May 18th, 2012, 07:21 AM
#1
ClassNotFoundException
Hey guys,
I'm using Maven, Spring MVC, and trying to get Solr configured at the moment. I have included the Solr dependencies in my pom.xml, however, when I launch my Tomcat server in Eclipse I get the following error:
Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire field: private com.MyClass com.controllers.MyController.myClass; nested exception is org.springframework.beans.factory.CannotLoadBeanCl assException: Cannot find class [org.apache.solr.client.solrj.impl.CommonsHttpSolrS erver] for bean with name 'solrServer' defined in ServletContext resource [/WEB-INF/spring/root-context.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.solr.client.solrj.impl.CommonsHttpSolrS erver
I do NOT see this error when I deploy the WAR file to Tomcat manually. Any ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules