Spring dependency problem with spring-data mongo. Change spring version to 4.0.2.RELEASE and spring data mongo version to 1.4.1.RELEASE. Avoid adding xsi schema with version in configuration files.