title: why is my webapplication NoClassDefFoundError: org/aspectj/lang/reflect/AjTypeSystem
body: <p>I´ve a maven web application. I´m using JSF, Primefaces, Hibernate, Spring, Spring AOP and ORACLE 11g.
  So when I deploy my application on Glassfish 3 it works perfectly, but when I deploy it on weblogic 12 I get the next error:</p>
  
  <pre><code>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'Usuarios' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/lang/reflect/AjTypeSystem
  
  Caused By: java.lang.NoClassDefFoundError: org/aspectj/lang/reflect/AjTypeSystem
  </code></pre>
  
  <p>So I opened my war then I looked in WEB-INF/lib and I found (aspectjrt.jar and aspectweaver.jar), so I´m not sure what´s wrong.
  Here is the part of my pom where I declare the aspectJ libs:</p>
  
  <pre><code>&lt;properties&gt;
      &lt;endorsed.dir&gt;${project.build.directory}/endorsed&lt;/endorsed.dir&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
  
      &lt;spring.version&gt;3.2.4.RELEASE&lt;/spring.version&gt;
      &lt;aspectj.version&gt;1.7.0&lt;/aspectj.version&gt;
      &lt;java.version&gt;1.7&lt;/java.version&gt;
      &lt;netbeans.hint.deploy.server&gt;WebLogic9&lt;/netbeans.hint.deploy.server&gt;
      &lt;netbeans.hint.j2eeVersion&gt;1.6&lt;/netbeans.hint.j2eeVersion&gt;
  &lt;/properties&gt;
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-core&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-context&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-web&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-tx&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-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;/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;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;!-- aspectJ --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
          &lt;artifactId&gt;aspectjrt&lt;/artifactId&gt;
          &lt;version&gt;${aspectj.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
          &lt;artifactId&gt;aspectjweaver&lt;/artifactId&gt;
          &lt;version&gt;${aspectj.version}&lt;/version&gt;
      &lt;/dependency&gt; 
  </code></pre>
  
  <p>So does anyone knows what´s happening. I already googled the error but every one says that the aspectjrt.jar and aspectweaver.jar might be missing, but I´m pretty sure they aren´t.</p>
  
  <p>Thanks in advance.</p>