title: Maven / Spring: AopNamespaceUtils NoSuchMethod Error
body: <p>Using Maven to build my project under windows works fine, but when I build it under Linux I get a <code>NoSuchMethodError</code> regarding one of the spring libs.  </p>
  
  <p>I am guessing it is something to do with class loader differences cross-platform and somewhere in my dependencies and I may have the same class twice but windows is loading one while linux loads the other? </p>
  
  <p>Has anyone come across this problem before, or have any advice on how I can debug this error further?</p>
  
  <pre><code>nested exception is java.lang.NoSuchMethodError:             
  org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Lorg/w3c/dom/Element;)V:
  java.lang.NoSuchMethodError:     
  org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Lorg/w3c/dom/Element;)V
   at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser$AopAutoProxyConf
  </code></pre>
  
  <p><a href="http://www.pastie.org/2061718" rel="nofollow">Stack Trace Pastie</a><br>
  <a href="http://www.pastie.org/2061741" rel="nofollow">POM.xml Pastie</a></p>