I faced with a problem, was google it for a half of this day. Nothing could help me. It was working. But after that something has happened and i didn\'t capture that.
<Well, java.lang.NoSuchMethodError means - incompatible versions in pom.xml
Fix. pom.xml:
<properties>
<spring-core.version>4.1.6.RELEASE</spring-core.version>
<javax.servlet-api.version>3.1.0</javax.servlet-api.version>
<spring-data-jpa.version>1.9.2.RELEASE</spring-data-jpa.version>
<hibernate-entitymanager.version>5.0.7.Final</hibernate-entitymanager.version>
<mysql-connector-java.version>5.1.34</mysql-connector-java.version>
<commons-dbcp2.version>2.1.1</commons-dbcp2.version>
<jta.version>1.1</jta.version>
<!--<postgresql.version>9.1-901-1.jdbc4</postgresql.version>-->
<junit.version>4.11</junit.version>
<spring-webmvc.version>4.1.6.RELEASE</spring-webmvc.version>
<spring-test.version>4.1.6.RELEASE</spring-test.version>
<jstl.version>1.2</jstl.version>
</properties>
I also suffered from this problem. But,When I changed version of spring and JDK Version then this problem was solved. So,it may to work out for you