title: ERROR! java.lang.NoSuchMethodError: when running command maven install
body: <p>I have the following error when I execute the command <code>mvn install</code>. I have seen few posts online related to my problem but I still could not resolve my issue. The error is: </p>
  
  <blockquote>
    <p>&lt;&lt;&lt; ERROR! java.lang.NoSuchMethodError:
    org.springframework.beans.BeanUtils.instantiateClass(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Object;
      at
    org.springframework.test.context.ContextLoaderUtils.resolveContextLoader(ContextLoaderUtils.java:87)</p>
  </blockquote>
  
  <p>And here is my <em>pom.xml</em> file:      </p>
  
  <pre><code>   &lt;!-- this file is generated with GWT webAppCreator --&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.mangroove.utils.MangrooveApp&lt;/groupId&gt;
      &lt;artifactId&gt;MangrooveWeb&lt;/artifactId&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
      &lt;version&gt;0.0.0&lt;/version&gt;
      &lt;name&gt;Mangroove appplication UI&lt;/name&gt;
      &lt;parent&gt;
          &lt;groupId&gt;com.mangroove&lt;/groupId&gt;
          &lt;artifactId&gt;mangroove-super-pom&lt;/artifactId&gt;
          &lt;version&gt;0.0.0.11&lt;/version&gt;
      &lt;/parent&gt;
      &lt;properties&gt;
          &lt;maven.compiler.source&gt;1.7&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;1.7&lt;/maven.compiler.target&gt;
          &lt;!-- Version properties --&gt;
          &lt;gwtVersion&gt;2.4.0&lt;/gwtVersion&gt;
          &lt;springVersion&gt;3.1.1.RELEASE&lt;/springVersion&gt;
         &lt;mangroovedao.version&gt;[0.0,1.0)&lt;/mangroovedao.version&gt;
         &lt;Project1.version&gt;[1.20,1.21)&lt;/Project1.version&gt;
          &lt;Project2.version&gt;1.0.0.98&lt;/Project2.version&gt;
          &lt;!-- Maven will save WAR file here --&gt;
          &lt;final.name&gt;MangrooveUI&lt;/final.name&gt;
          &lt;webappDirectory&gt;${project.build.directory}/${project.build.finalName}&lt;/webappDirectory&gt;
      &lt;/properties&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.mangroove.dao&lt;/groupId&gt;
              &lt;artifactId&gt;MangrooveDao&lt;/artifactId&gt;
              &lt;version&gt;${mangroovedao.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.mangroove.dao&lt;/groupId&gt;
              &lt;artifactId&gt;MangrooveDao&lt;/artifactId&gt;
              &lt;version&gt;${mangroovedao.version}&lt;/version&gt;
              &lt;classifier&gt;sources&lt;/classifier&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- Project1 dependency --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.project1&lt;/groupId&gt;
              &lt;artifactId&gt;Project1&lt;/artifactId&gt;
              &lt;version&gt;${Project1.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Project2 dependency --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.project2&lt;/groupId&gt;
              &lt;artifactId&gt;Project2&lt;/artifactId&gt;
              &lt;version&gt;${Project2.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- GWT dependencies --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.gwt&lt;/groupId&gt;
              &lt;artifactId&gt;gwt-servlet&lt;/artifactId&gt;
              &lt;version&gt;${gwtVersion}&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.gwt&lt;/groupId&gt;
              &lt;artifactId&gt;gwt-user&lt;/artifactId&gt;
              &lt;version&gt;${gwtVersion}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- Testing/validation dependencies --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.7&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.validation&lt;/groupId&gt;
              &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
              &lt;version&gt;1.0.0.GA&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.validation&lt;/groupId&gt;
              &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
              &lt;version&gt;1.0.0.GA&lt;/version&gt;
              &lt;classifier&gt;sources&lt;/classifier&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- Spring dependencies --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
              &lt;version&gt;${springVersion}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
              &lt;version&gt;${springVersion}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
              &lt;version&gt;${springVersion}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
              &lt;version&gt;${springVersion}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
              &lt;version&gt;${springVersion}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-beans&lt;/artifactId&gt;
              &lt;version&gt;${springVersion}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-oxm&lt;/artifactId&gt;
              &lt;version&gt;${springVersion}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt;
              &lt;version&gt;${springVersion}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-lang&lt;/groupId&gt;
              &lt;artifactId&gt;commons-lang&lt;/artifactId&gt;
              &lt;version&gt;2.6&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.mangroove&lt;/groupId&gt;
              &lt;artifactId&gt;xhtmlrenderer-core-renderer&lt;/artifactId&gt;
              &lt;version&gt;[8.0.1,)&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.lowagie&lt;/groupId&gt;
              &lt;artifactId&gt;itext&lt;/artifactId&gt;
              &lt;version&gt;2.1.7&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;jexcelapi&lt;/groupId&gt;
              &lt;artifactId&gt;jxl&lt;/artifactId&gt;
              &lt;version&gt;2.6&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.bouncycastle&lt;/groupId&gt;
              &lt;artifactId&gt;bcprov-jdk16&lt;/artifactId&gt;
              &lt;version&gt;1.46&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jfree&lt;/groupId&gt;
              &lt;artifactId&gt;jcommon&lt;/artifactId&gt;
              &lt;version&gt;1.0.23&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;finalName&gt;${project.artifactId}&lt;/finalName&gt;
          &lt;outputDirectory&gt;${webappDirectory}/WEB-INF/classes&lt;/outputDirectory&gt;
          &lt;resources&gt;
              &lt;resource&gt;
                  &lt;directory&gt;src/main/resources&lt;/directory&gt;
                  &lt;filtering&gt;true&lt;/filtering&gt;
                  &lt;excludes&gt;&lt;exclude&gt;MangrooveWeb.xml&lt;/exclude&gt;&lt;/excludes&gt;
              &lt;/resource&gt;
          &lt;/resources&gt;
          &lt;plugins&gt;
              &lt;!-- Copy static web files before executing gwt:run --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;phase&gt;compile&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;exploded&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
                  &lt;configuration&gt;
                      &lt;webappDirectory&gt;${webappDirectory}&lt;/webappDirectory&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                  &lt;artifactId&gt;gwt-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.4.0&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;compile&lt;/goal&gt;
                              &lt;!-- &lt;goal&gt;test&lt;/goal&gt; --&gt;
                              &lt;goal&gt;generateAsync&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
                  &lt;configuration&gt;
                      &lt;runTarget&gt;Main.html&lt;/runTarget&gt;
                      &lt;hostedWebapp&gt;${webappDirectory}&lt;/hostedWebapp&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>