I had the same problem. Resolved this by adding schema definition for < repository > element even though I did not use it in persistence xml file: xsi:schemaLocation="http://www.springframework.org/schema/data/repository http://www.springframework.org/schema/data/repository/spring-repository.xsd ..."