title: How to add JSTL to Maven?
body: <p>I'm working on a JSF 2.0 project using Mojarra, PrimeFaces and Tomcat 6.x.</p>
  
  <p>I need to use c:forEach for some primefaces component like dynamic number of p:tab but i have problem with the c:forEach. All the other tag of JSTL work nice.</p>
  
  <p>I have the following error :</p>
  
  <blockquote>
    <p>java.lang.NoClassDefFoundError:
    javax/servlet/jsp/jstl/core/LoopTagStatus</p>
  </blockquote>
  
  <p>I use the following <code>xmlns:c="http://java.sun.com/jsp/jstl/core"</code>, i tried to replace with <code>xmlns:c="http://java.sun.com/jstl/core"</code> but nothing display with the second.</p>
  
  <p>This is the exact version of lib:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;javax.faces&lt;/groupId&gt;
      &lt;artifactId&gt;jsf-api&lt;/artifactId&gt;
      &lt;version&gt;2.0.2-FCS&lt;/version&gt;
      &lt;scope&gt;provided&lt;/scope&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.0.4-b03&lt;/version&gt;
      &lt;scope&gt;provided&lt;/scope&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;2.2.1&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;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.glassfish.web&lt;/groupId&gt;
      &lt;artifactId&gt;el-impl&lt;/artifactId&gt;
      &lt;version&gt;2.2&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>How i can fix it ?</p>
  
  <p>I can give more specific information if needed.</p>
  
  <p><strong>EDIT:</strong>
  I added and tried different scopes (runtime and compile) but nothing change:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;jstl&lt;/artifactId&gt;
          &lt;version&gt;1.2&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>The list of repository:</p>
  
  <pre><code>  &lt;repositories&gt;
      &lt;repository&gt;
        &lt;id&gt;central&lt;/id&gt;
        &lt;name&gt;Maven Repository Switchboard&lt;/name&gt;
        &lt;layout&gt;default&lt;/layout&gt;
        &lt;url&gt;http://repo1.maven.org/maven2&lt;/url&gt;
        &lt;snapshots&gt;
          &lt;enabled&gt;false&lt;/enabled&gt;
        &lt;/snapshots&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
        &lt;id&gt;maven-repository.dev.java.net&lt;/id&gt;
        &lt;name&gt;Java.net Repository for Maven 1&lt;/name&gt;
        &lt;url&gt;http://download.java.net/maven/1/&lt;/url&gt;
        &lt;layout&gt;default&lt;/layout&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
        &lt;id&gt;maven2&lt;/id&gt;
        &lt;name&gt;Java.net Repository for Maven&lt;/name&gt;
        &lt;url&gt;http://download.java.net/maven/2&lt;/url&gt;
        &lt;layout&gt;default&lt;/layout&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
        &lt;id&gt;prime-repo&lt;/id&gt;
        &lt;name&gt;Prime Technology Maven Repository&lt;/name&gt;
        &lt;url&gt;http://repository.prime.com.tr&lt;/url&gt;
        &lt;layout&gt;default&lt;/layout&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
        &lt;id&gt;JBoss2&lt;/id&gt;
        &lt;url&gt;https://repository.jboss.org/nexus/content/repositories/public&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
        &lt;id&gt;JBoss&lt;/id&gt;
        &lt;url&gt;http://repository.jboss.com/maven2&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
        &lt;id&gt;EclipseLink Repo&lt;/id&gt;
        &lt;url&gt;http://www.eclipse.org/downloads/download.php?r=1&amp;amp;nf=1&amp;amp;file=/rt/eclipselink/maven.repo&lt;/url&gt;
        &lt;snapshots&gt;
          &lt;enabled&gt;true&lt;/enabled&gt;
        &lt;/snapshots&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
        &lt;id&gt;itextpdf.com&lt;/id&gt;
        &lt;name&gt;Maven Repository for iText&lt;/name&gt;
        &lt;url&gt;http://maven.itextpdf.com/&lt;/url&gt;
      &lt;/repository&gt;
  
      &lt;repository&gt;
        &lt;id&gt;guiceyfruit.release&lt;/id&gt;
        &lt;name&gt;GuiceyFruit Release Repository&lt;/name&gt;
        &lt;url&gt;http://guiceyfruit.googlecode.com/svn/repo/releases/&lt;/url&gt;
        &lt;snapshots&gt;
          &lt;enabled&gt;false&lt;/enabled&gt;
        &lt;/snapshots&gt;
        &lt;releases&gt;
          &lt;enabled&gt;true&lt;/enabled&gt;
        &lt;/releases&gt;
      &lt;/repository&gt;
    &lt;/repositories&gt;
  </code></pre>
  
  <p>This is the content of $TOMCAT_HOME/lib</p>
  
  <blockquote>
    <p>annotations-api.jar   catalina-ha.jar 
    catalina-tribes.jar   el-impl-2.2.jar 
    jasper.jar       jsf-api.jar<br>
    jsp-api.jar   servlet-api.jar<br>
    tomcat-dbcp.jar<br>
    tomcat-i18n-fr.jar catalina-ant.jar<br>
    catalina.jar      el-api-2.2.jar<br>
    jasper-el.jar     jasper-jdt.jar<br>
    jsf-impl-2.0.4-b03.jar   ojdbc6.jar<br>
    tomcat-coyote.jar   tomcat-i18n-es.jar
    tomcat-i18n-ja.jar</p>
  </blockquote>