working with spring-data-solr spring-data-mongodb

Problem statement Recently I’m running into an issue when trying to add spring-data-solr into a project that’s already using spring-data-mongodb Here is my maven/gradle dependency dataMongo: "org.springframework.data:spring-data-mongodb:1.8.4.RELEASE", dataSolr:"org.springframework.data:spring-data-solr:1.5.4.RELEASE"</pre> Here is my spring configuration: application-context.xml The moment I’ve added the dependency, the build is broken with the following error Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [posts.dao.ActivityTrackRepository] found ...