I am pulling my hair out!
I am using Eclipse IDE for Enterprise Java and Web Developers Version: 2022-06 (4.24.0)
My POM references version 2.0.0 of jstl
<!-- https://mvnrepository.com/artifact/org.glassfish.web/jakarta.servlet.jsp.jstl -->
<!-- https://stackoverflow.com/a/4928309/6578837 -->
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>jakarta.servlet.jsp.jstl</artifactId>
<version>2.0.0</version>
</dependency>
My project uses Jakarta libraries (as it's written to run on Tomcat 10)
My project is reporting The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
on all jsp files that include a reference to the taglibs:
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>``
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
I have seen and tried many ways to fix this including: https://stackoverflow.com/a/4076706/6578837 I have spent 2 days on trying to resolve this but have not been able to solve it.
The project runs fine on both the local Tomcat install and the one on the product server.