title: getting error missing a runtime dependency: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItem
body: <p>I am trying to setup Maven, JSF and Primefaces project. But when i run the project i get the following error</p>
  
  <pre><code>com.sun.faces.config.ConfigurationException: 
  Source Document: jar:file:/D:/Personal%20Work/eclipse%2032%20Bit/workspace/Java%20EE
  /Spring/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
  /ch18_SpringWebFlowAndJSF/WEB-INF/lib/primefaces-3.5.jar!/META-INF/faces-config.xml
  Cause: Class 'org.primefaces.component.fileupload.FileUploadRenderer' is missing
   a runtime dependency: java.lang.NoClassDefFoundError: org/apache/commons/fileupload
  /FileItem
  </code></pre>
  
  <p>Here is my POM snippet</p>
  
  <pre><code>&lt;properties&gt;
      &lt;java-version&gt;1.6&lt;/java-version&gt;
      &lt;org.springframework-version&gt;3.2.3.RELEASE&lt;/org.springframework-version&gt;
      &lt;org.aspectj-version&gt;1.6.10&lt;/org.aspectj-version&gt;
      &lt;org.slf4j-version&gt;1.7.5&lt;/org.slf4j-version&gt;
      &lt;jsf-version&gt;2.2.0&lt;/jsf-version&gt;
  &lt;/properties&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.webflow&lt;/groupId&gt;
          &lt;artifactId&gt;spring-faces&lt;/artifactId&gt;
          &lt;version&gt;2.3.2.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.faces&lt;/groupId&gt;
          &lt;artifactId&gt;jsf-api&lt;/artifactId&gt;
          &lt;version&gt;${jsf-version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.faces&lt;/groupId&gt;
          &lt;artifactId&gt;jsf-impl&lt;/artifactId&gt;
          &lt;version&gt;${jsf-version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.primefaces&lt;/groupId&gt;
          &lt;artifactId&gt;primefaces&lt;/artifactId&gt;
          &lt;version&gt;3.5&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;repositories&gt;
      &lt;repository&gt;  
          &lt;id&gt;prime-repo&lt;/id&gt;  
          &lt;name&gt;PrimeFaces Maven Repository&lt;/name&gt;  
          &lt;url&gt;http://repository.primefaces.org&lt;/url&gt;  
          &lt;layout&gt;default&lt;/layout&gt;  
      &lt;/repository&gt;     
  &lt;/repositories&gt; 
  </code></pre>
  
  <p>Why i am getting this error? </p>
  
  <p>Thanks</p>