I wrote a web application with Eclipse Tomcat and it works on my local Tomcat 7, when I tried to publish it online on a Tomcat 7, I had the following error:
Your uri is correct for JSTL 1.2. You need to do two things :
Change your web.xml
to use the latest web-app version.
It should look something like this or a later version;
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
Secondly put the correct version of jstl jars in your code. For 1.2 You can download them here.
This should give you two jars:
Use these, instead of standard.jar
and jstl.jar
which were for previous version.
Let us know how this works for you.
I suffered from the error: SEVERE: Servlet.service() for servlet [obliquid.servlet.Index] in context with path [/cp] threw exception [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] on Tomcat 7
The Solution: copy jars jstl-1.2.jar and javax.servlet.jsp.jstl-api-1.2.1.jar straight to Tomcat Library Directory. Redeploy Tomcat Library in Eclipse again.
Tomcat has never included JSTL.
You should put the jstl and standard jars in WEB-INF/lib
(you've done that), and make sure you have the permissions to read them (chmod)
Your URI is correct and it should work (works here)