title: Spring Roo NoClassDefFoundError
body: <p>my primary attempt is to build a CRUD app using Roo, following the example here:</p>
  
  <p><a href="https://www.icts.uiowa.edu/confluence/display/ICTSit/Spring+Roo+Tutorial" rel="nofollow">https://www.icts.uiowa.edu/confluence/display/ICTSit/Spring+Roo+Tutorial</a> </p>
  
  <p>I am using Roo 1.2.5, Maven 3.1.1, and Spring 3.2.6 on JRE7.</p>
  
  <p>This has been the best tutorial I have found so far. If anyone has a better example, please share! </p>
  
  <p>However, when I execute the project in my Tomcat environment things still break. The primary error from there is:</p>
  
  <pre><code>HTTP Status 500 -  
  type Exception report
  message
  description The server encountered an internal error () that prevented it from fulfilling this request.
  
  exception
  
  java.lang.NoClassDefFoundError: org/springframework/util/MimeType   
  </code></pre>
  
  <p>I have built multiple projects using Roo over the past few days, either from this tutorial or 10 others that all start with the reverse engineer command, and all give me the same type of a NoClassDefFoundError, either with this class or another. I understand this means that my pom.xml is more than likely incorrect, but I am hoping this is an issue with my configuration rather than something all Roo developers have simply accepted as manual maintenance.</p>
  
  <p>Any advice would be tremendous... is it possible that the version of Roo combined with Spring and Maven I am using is simply buggy? I would love to use this framework/toolkit, but am nearing the point where manually writing the scaffolding by hand may be more straightforward.</p>
  
  <p>.... UPDATE:</p>
  
  <p>By adding the following dependency manually, I was able to run the project. However, I want to leave the question open to see if anyone further knows whether this missing jar is a known bug given the version of Spring Roo I am using, or otherwise:  </p>
  
  <pre><code>&lt;dependency&gt;  
      &lt;groupId&gt;commons-fileupload&lt;/groupId&gt;  
      &lt;artifactId&gt;commons-fileupload&lt;/artifactId&gt;  
      &lt;version&gt;1.2.2&lt;/version&gt;  
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Thanks!</p>