title: Apache Tomcat 10.0.0-M1 using JSP Absolute uri http://java.sun.com/jsp/jstl/core cannot be resolved
body: <p>I have tried everything in the multiple threads on this site (non of them were for Tomcat 10 and non of the solved problem.  I am using Apache NetBeans 11.1 with Apache Tomcat 10.0.0-M1. Below is my configuration -- if I remove the taglib line from my jsp file, the error goes away.</p>
  
  <p>web.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app
      xmlns="http://xmlns.jcp.org/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
      version="4.0"&gt;
  
      &lt;!-- Config here. --&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>pom.xml dependencies:</p>
  
  <pre><code>&lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax&lt;/groupId&gt;
              &lt;artifactId&gt;javaee-web-api&lt;/artifactId&gt;
              &lt;version&gt;8.0.1&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
              &lt;artifactId&gt;gson&lt;/artifactId&gt;
              &lt;version&gt;2.8.5&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.json&lt;/groupId&gt;
              &lt;artifactId&gt;json&lt;/artifactId&gt;
              &lt;version&gt;20190722&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.mail&lt;/groupId&gt;
              &lt;artifactId&gt;mail&lt;/artifactId&gt;
              &lt;version&gt;1.4.7&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
             &lt;groupId&gt;com.zaxxer&lt;/groupId&gt;
             &lt;artifactId&gt;HikariCP&lt;/artifactId&gt;
             &lt;version&gt;3.3.1&lt;/version&gt;
             &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
              &lt;version&gt;5.1.10.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
              &lt;version&gt;5.1.10.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &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;!--scope&gt;provided&lt;/scope--&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  </code></pre>
  
  <p>test.jsp</p>
  
  <pre><code>&lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %&gt;
  &lt;%@page contentType="text/html" pageEncoding="UTF-8"%&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
          &lt;title&gt;JSP Page&lt;/title&gt;
  
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h1&gt;Test Results&lt;/h1&gt;
          &lt;testResults&gt;&lt;/testResults&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>error displayed:</p>
  
  <pre><code>org.apache.jasper.JasperException: The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either web.xml or the jar files deployed with this application
      org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:55)
      org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:294)
      org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81)
      org.apache.jasper.compiler.TagLibraryInfoImpl.generateTldResourcePath(TagLibraryInfoImpl.java:251)
      org.apache.jasper.compiler.TagLibraryInfoImpl.&lt;init&gt;(TagLibraryInfoImpl.java:122)
      org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:431)
      org.apache.jasper.compiler.Parser.parseDirective(Parser.java:489)
      org.apache.jasper.compiler.Parser.parseElements(Parser.java:1445)
      org.apache.jasper.compiler.Parser.parse(Parser.java:144)
      org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244)
      org.apache.jasper.compiler.ParserController.parse(ParserController.java:105)
      org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:206)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:386)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:362)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:346)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:605)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:400)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
      jakarta.servlet.http.HttpServlet.service(HttpServlet.java:741)
      org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:955)
      org.apache.jsp.index_jsp._jspService(index_jsp.java:128)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
      jakarta.servlet.http.HttpServlet.service(HttpServlet.java:741)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
      jakarta.servlet.http.HttpServlet.service(HttpServlet.java:741)
      org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  </code></pre>