title: java.lang.NoClassDefFoundError: com/sun/faces/context/RequestParameterValuesMap
body: <p>I have developed a JSF 2.0/Primefaces 3.2 web application running on an amazon cloud instance.
  I have been having recently lot of "NoClassDefFoundError" and don't know where to start digging. I initially thought that it has to with the Classloader but after we redeploy the application on the next day the exception disappeared.</p>
  
  <p>Here are the list of jsf2.0 maven dependencies I have:</p>
  
  <pre><code>&lt;dependecy&gt;
        &lt;groupId&gt;com.sun.faces&lt;/groupId&gt; 
        &lt;artifactId&gt;jsf-api&lt;/artifactId&gt; 
        &lt;version&gt;2.1.3&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;2.1.3&lt;/version&gt;
   &lt;/dependency&gt; 
   &lt;dependency&gt;
              &lt;groupId&gt;javax.el&lt;/groupId&gt;
              &lt;artifactId&gt;el-api&lt;/artifactId&gt;
              &lt;version&gt;2.2&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
   &lt;/dependency&gt; 
  </code></pre>
  
  <p>Here is the exception I recently got:</p>
  
  <blockquote>
    <p>java.lang.NoClassDefFoundError:
    com/sun/faces/context/RequestParameterValuesMap at<br>
    com.sun.faces.context.ExternalContextImpl.getRequestParameterValuesMap(ExternalContextImpl.java:347)
    at
    org.primefaces.renderkit.SelectManyRenderer.decode(SelectManyRenderer.java:39)
        at
    javax.faces.component.UIComponentBase.decode(UIComponentBase.java:787)
        at javax.faces.component.UIInput.decode(UIInput.java:757)       at
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1181)
        at javax.faces.component.UIInput.processDecodes(UIInput.java:662)<br>
    at
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
        at
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
        at
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
        at
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
        at javax.faces.component.UIForm.processDecodes(UIForm.java:225)<br>
    at
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
        at
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
        at
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
        at
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
        at
    org.primefaces.component.layout.Layout.processDecodes(Layout.java:238)
        at
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
        at
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
        at
    org.primefaces.component.layout.Layout.processDecodes(Layout.java:238)
        at
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
        at
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
        at
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
        at
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
        at
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)</p>
  </blockquote>
  
  <p>Any help on this will be appreciated.  </p>
  
  <p>Thanks </p>