title: ClassNotFoundException: CompositeUriComponentsContributor when running in Jetty
body: <p>I just started getting the below error when running a java spring webserver</p>
  
  <pre><code>    java.lang.ClassNotFoundException:org.springframework.web.method.support.CompositeUriComponentsContributor
  </code></pre>
  
  <p>This code was previously working and I didn't change any of the versions so I'm not sure what's going on. I have the following spring framework dependencies in my pom</p>
  
  <pre><code>&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-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-expression&lt;/artifactId&gt;
      &lt;version&gt;${spring.version}&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
  &lt;artifactId&gt;spring-security-web&lt;/artifactId&gt;
  &lt;version&gt;${springSecurity.version}&lt;/version&gt;
  &lt;/dependency&gt; 
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
      &lt;artifactId&gt;spring-security-config&lt;/artifactId&gt;
  &lt;version&gt;${springSecurity.version}&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.social&lt;/groupId&gt;
  &lt;artifactId&gt;spring-social-core&lt;/artifactId&gt;
  &lt;version&gt;${springSocial.version}&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.social&lt;/groupId&gt;
  &lt;artifactId&gt;spring-social-config&lt;/artifactId&gt;
  &lt;version&gt;${springSocial.version}&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.springframework.social&lt;/groupId&gt;
  &lt;artifactId&gt;spring-social-security&lt;/artifactId&gt;
  &lt;version&gt;${springSocial.version}&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>with the versions been</p>
  
  <pre><code>&lt;spring.version&gt;3.2.3.RELEASE&lt;/spring.version&gt;
  &lt;springSocial.version&gt;1.1.0.BUILD-SNAPSHOT&lt;/springSocial.version&gt;
  &lt;springSecurity.version&gt;3.1.4.RELEASE&lt;/springSecurity.version&gt;
  </code></pre>
  
  <p>This method is contained in the org.springframework spring-web jar so I also tried to use the maven dependency plugin to trace if some other dependency is loading an older version using the following cli argument</p>
  
  <pre><code>mvn dependency:tree -Dverbose -Dincludes=spring-web
  </code></pre>
  
  <p>However this is showing no results. I also tried some of the suggestions in this previous question <a href="https://stackoverflow.com/questions/12409769/using-maven-getting-java-lang-classnotfoundexception-org-springframework-web-b">Using Maven: Getting java.lang.ClassNotFoundException: org.springframework.web.bind.support.WebDataBinderFactory</a> but no luck.</p>
  
  <p>The only other artifacts I have recently added to my pom are</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
  &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
  &lt;version&gt;4.2.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;org.apache.axis&lt;/groupId&gt;
  &lt;artifactId&gt;axis&lt;/artifactId&gt;
  &lt;version&gt;1.4&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;commons-discovery&lt;/groupId&gt;
  &lt;artifactId&gt;commons-discovery&lt;/artifactId&gt;
  &lt;version&gt;0.5&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.chemistry.opencmis&lt;/groupId&gt;
  &lt;artifactId&gt;chemistry-opencmis-client-api&lt;/artifactId&gt;
  &lt;version&gt;0.8.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;org.apache.chemistry.opencmis&lt;/groupId&gt;
  &lt;artifactId&gt;chemistry-opencmis-commons-impl&lt;/artifactId&gt;
  &lt;version&gt;0.8.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.chemistry.opencmis&lt;/groupId&gt;
  &lt;artifactId&gt;chemistry-opencmis-client-impl&lt;/artifactId&gt;
  &lt;version&gt;0.8.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>but I don't think these should be affecting spring-web dependencies. Has anyone come across this before or have any other ideas of what I could try to figure out what's going on?</p>
  
  <p>Cheers,
  Derm</p>