title: Error "Unable to process parts as no multi-part configuration has been provided" when uploading file
body: <p>I am trying to upload an file via a form in a JSP file, but I'm getting this error. The servlet already has the @MultipartConfig notation. I'm using servlet 3.0 and apache tomcat 8.</p>
  
  <p>Error message:</p>
  
  <pre><code>java.lang.IllegalStateException: Unable to process parts as no multi-part configuration has been provided
  </code></pre>
  
  <p>on line</p>
  
  <pre><code>Collection&lt;Part&gt; parts = request.getParts();`
  </code></pre>