title: Tomcat 5.5 Servlet/JSP/JSTL dependencies
body: <p>I have a problem with Tomcat 5.5 and Java EE webapp libraries. I'm using Gradle for dependency management and I'm using JSP API 2.0, Servlet API 2.4 and JSTL 1.1.</p>
  
  <p>I'm getting a <code>org.apache.jasper.JasperException: The absolute uri: <a href="http://java.sun.com/jsp/jstl/core" rel="nofollow">http://java.sun.com/jsp/jstl/core</a> cannot be resolved in either web.xml or the jar files deployed with this application</code>   </p>
  
  <p>According to <a href="http://www.mularien.com/blog/2008/04/24/how-to-reference-and-use-jstl-in-your-web-application/" rel="nofollow">http://www.mularien.com/blog/2008/04/24/how-to-reference-and-use-jstl-in-your-web-application/</a>, that means the JSTL implementation is missing.</p>
  
  <p>Here is what my web.xml looks like:</p>
  
  <pre><code>&lt;web-app
      xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
          http://java.sun.com/xml/ns j2ee/web-app_2_4.xsd"
      version="2.4"&gt;
  </code></pre>
  
  <p><hr>
  This is how I reference the JSTL libraries:</p>
  
  <pre><code>&lt;%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&gt;
  </code></pre>
  
  <p><hr>
  Corresponding dependencies in Gradle build file:</p>
  
  <pre><code>providedCompile group: 'javax.servlet', name: 'servlet-api', version: '2.4'
  providedCompile group: 'javax.servlet', name: 'jsp-api', version: '2.0'
  compile group: 'javax.servlet', name: 'jstl', version: '1.1.+'
  </code></pre>
  
  <p><hr> 
  In Tomcat/common/libs, I have these jars:</p>
  
  <pre><code>Tomcat 5.5\common\lib
  
  23.09.2002  12:23            45˙386 activation.jar
  05.03.2007  17:26           112˙341 commons-el.jar
  05.03.2007  17:26         1˙213˙732 jasper-compiler-jdt.jar
  05.03.2007  17:26           408˙133 jasper-compiler.jar
  05.03.2007  17:26            76˙844 jasper-runtime.jar
  05.03.2007  17:26            50˙952 jsp-api.jar
  29.08.2005  22:28           358˙085 LOG4J-1.2.12.JAR
  12.10.2004  13:20           347˙137 mail-1.3.2.jar
  05.03.2007  17:26           163˙490 naming-factory-dbcp.jar
  05.03.2007  17:26            31˙963 naming-factory.jar
  05.03.2007  17:26            47˙730 naming-resources.jar
  05.03.2007  17:26            99˙235 servlet-api.jar
  </code></pre>
  
  <p><hr>
  In the built WAR, the only relevant JAR file is <code>jstl-1.1.2.jar</code></p>