title: spring 3.2 configuration tx:annotation-driven error in eclipse
body: <p>Trying to migrate from Spring 3.0 -> 3.2.4</p>
  
  <p>using: Eclipse Juno (on 64 bit java 1.7), and STS 3.3, </p>
  
  <p>Problem: Edit window in Eclipse/STS IDE shows: </p>
  
  <blockquote>
    <p>Error occurred processing XML
    'org/springframework/aop/config/AopNamespaceUtils'</p>
  </blockquote>
  
  <p>on the line where I am using <code>&lt;tx:annotation-driven&gt;</code></p>
  
  <p>Compiling the project results in a similar error.</p>
  
  <pre><code>java.lang.NoClassDefFoundError: org/springframework/aop/config/AopNamespaceUtils
  </code></pre>
  
  <p>I've been struggling to find a resolution to this.  I'm assuming that it's something simple I've overlooked, but I can't for the life of me find it.  </p>
  
  <p>Here's what I've done so far:</p>
  
  <ul>
  <li>I've created the config file from scratch using Eclipse -> new file
  -> STS bean configuration.  </li>
  <li>I've confirmed that maven has installed the appropriate jars into
  the classpath.</li>
  <li>I've compiled with both java versions 1.6 and 1.7</li>
  <li>started eclipse with -clean (in case there were any artifacts left by older project and workspace versions)</li>
  <li><code>&lt;tx:annotation-driven&gt;</code> was added using the normal Eclipse ctrl+space</li>
  <li>explicitly added <strong>spring-web</strong> to pom.xml (Spring version 3.2 removed the required dependency, but it made no difference, in or out)</li>
  <li>explicitly added <strong>spring-aop</strong> to pom.xml</li>
  </ul>
  
  <p>Any help or insights would be appreciated.</p>
  
  <p>Here is my config-portlets.xml (prior version of this worked in Spring 3.0)</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;beans xmlns="http://www.springframework.org/schema/beans"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     xmlns:context="http://www.springframework.org/schema/context"
          xmlns:mvc="http://www.springframework.org/schema/mvc"     xmlns:p="http://www.springframework.org/schema/p"
          xmlns:tx="http://www.springframework.org/schema/tx"     xmlns:util="http://www.springframework.org/schema/util"
          xsi:schemaLocation="http://www.springframework.org/schema/beans     http://www.springframework.org/schema/beans/spring-beans.xsd
              http://www.springframework.org/schema/context     http://www.springframework.org/schema/context/spring-context-3.2.xsd
              http://www.springframework.org/schema/mvc     http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd
          http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsd
          http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.2.xsd"&gt;
  
      &lt;tx:annotation-driven /&gt;  &lt;!-- error here--&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>I have explicitly included spring-aop-3.2.4.Final in my pom.xml</p>
  
  <pre><code>    &lt;?xml version="1.0"?&gt;
  
      &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
          &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
          &lt;groupId&gt;com.sbeko&lt;/groupId&gt;
          &lt;artifactId&gt;horse-accounts&lt;/artifactId&gt;
          &lt;packaging&gt;war&lt;/packaging&gt;
          &lt;name&gt;horse-accounts Portlet&lt;/name&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;build&gt;
              &lt;plugins&gt;...
                  &lt;plugin&gt;
                      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.5&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;encoding&gt;UTF-8&lt;/encoding&gt;
                          &lt;source&gt;1.6&lt;/source&gt; &lt;!-- 1.7 tried here as well --&gt;
                          &lt;target&gt;1.6&lt;/target&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
   &lt;!-- bunch of stuff taken out for clarity..--&gt;
              &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/build&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
  &lt;!--  bunch of stuff taken out for clarity..--&gt;
          &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-webmvc-portlet&lt;/artifactId&gt;
                  &lt;version&gt;${spring.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
                  &lt;artifactId&gt;aspectjrt&lt;/artifactId&gt;
                  &lt;version&gt;1.6.8&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
                  &lt;version&gt;${spring.version}&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;${spring.version}&lt;/version&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
                  &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
                  &lt;version&gt;2.4&lt;/version&gt;
                  &lt;scope&gt;provided&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;javassist&lt;/groupId&gt;
                  &lt;artifactId&gt;javassist&lt;/artifactId&gt;
                  &lt;version&gt;3.9.0.GA&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;mysql&lt;/groupId&gt;
                  &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
                  &lt;version&gt;5.1.25&lt;/version&gt;
                  &lt;scope&gt;provided&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;commons-dbcp&lt;/groupId&gt;
                  &lt;artifactId&gt;commons-dbcp&lt;/artifactId&gt;
                  &lt;version&gt;1.2.2&lt;/version&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.1.0.Final&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
                  &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
                  &lt;version&gt;5.0.1.Final&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;cglib&lt;/groupId&gt;
                  &lt;artifactId&gt;cglib&lt;/artifactId&gt;
                  &lt;version&gt;3.0&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-aspects&lt;/artifactId&gt;
                  &lt;version&gt;${spring.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;javax.portlet&lt;/groupId&gt;
                  &lt;artifactId&gt;portlet-api&lt;/artifactId&gt;
                  &lt;version&gt;2.0&lt;/version&gt;
                  &lt;scope&gt;provided&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;com.thoughtworks.xstream&lt;/groupId&gt;
                  &lt;artifactId&gt;xstream&lt;/artifactId&gt;
                  &lt;version&gt;1.4.4&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;joda-time&lt;/groupId&gt;
                  &lt;artifactId&gt;joda-time&lt;/artifactId&gt;
                  &lt;version&gt;1.6.2&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
                  &lt;artifactId&gt;hibernate-envers&lt;/artifactId&gt;
                  &lt;version&gt;${hibernate.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
                  &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
                  &lt;version&gt;${hibernate.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
                  &lt;version&gt;3.2.3.RELEASE&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-aop&lt;/artifactId&gt;
                  &lt;version&gt;${spring.version}&lt;/version&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
          &lt;properties&gt;
              &lt;spring.version&gt;3.2.4.RELEASE&lt;/spring.version&gt;
              &lt;hibernate.version&gt;3.5.6-Final&lt;/hibernate.version&gt;
          &lt;/properties&gt;
      &lt;/project&gt;
  </code></pre>