title: java.lang.IllegalStateException: Unable to process parts as no multi-part configuration has been provided
body: <p>I don´t understand why this official example does not work.</p>
  
  <p>I think someone will help me to solve this out.</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>The error message:</strong></p>
  
  <pre><code>Servlet.service() for servlet [Spring MVC Servlet] in context with path [/primefaces-showcase] threw exception [Request processing failed; nested exception is org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'view' of flow 'file-upload'] with root cause
  java.lang.IllegalStateException: Unable to process parts as no multi-part configuration has been provided 
  </code></pre>
  
  <p>I tried configuring my files:</p>
  
  <p>Web.xml (<strong>input the config</strong>)</p>
  
  <pre><code>    &lt;filter&gt;
      &lt;filter-name&gt;PrimeFaces FileUpload Filter&lt;/filter-name&gt;
      &lt;filter-class&gt;org.primefaces.webapp.filter.FileUploadFilter&lt;/filter-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;thresholdSize&lt;/param-name&gt;
          &lt;param-value&gt;51200&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;uploadDirectory&lt;/param-name&gt;
          &lt;param-value&gt;C:\&lt;/param-value&gt;
      &lt;/init-param&gt;
  &lt;/filter&gt;
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;PrimeFaces FileUpload Filter&lt;/filter-name&gt;
      &lt;servlet-name&gt;Spring MVC Dispatcher Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.xhtml&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  &lt;context-param&gt;
      &lt;param-name&gt;javax.faces.STATE_SAVING_METHOD&lt;/param-name&gt;
      &lt;param-value&gt;server&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  
  <p>And also <strong>input in servlet-context.xml</strong></p>
  
  <pre><code>    &lt;bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"&gt; 
         &lt;property name="maxUploadSize" value="10000000" /&gt;
  &lt;/bean&gt;
  </code></pre>