Reason for this error is version incompatibility between JSP, Servlet and JSTL. Matching versions are listed below.
- JSP 1.2 , Servlet 2.3 , JSTL 1.0
- JSP 2.0 , Servlet 2.4 , JSTL 1.1
Check the web.xml to see whether it uses the Servlet 2.3 DTD or Servlet 2.4 Schema.
If it uses Servlet 2.3 DTD, it will have the following text.
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
.....
</web-app>
For Servlet 2.4 Schema, it will look like below.
<web-app version="2.4"
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">
.....
</web-app>
When you change the versions correctly, no such errors will pop-up. Hope this will help you.
Hi,
ReplyDeleteThanks, I had the same issue and it's solved by changing the Servlet version from 2.4 to 2.3
Timo: I was experiencing the exact same thing, using your change solved my problem
ReplyDeletethank you very much !
Hello,
ReplyDeleteThanks Timo
Thanks @Timo. I had the same problem when using Servlet 3.0 Schema.
ReplyDeleteTimo thank you. You are solved my problem also :)
ReplyDeleteThanks guys, this thread helped me ... much appreciated
ReplyDeleteThank you so much !
ReplyDeleteJiri
Thanks Timo, i faced the same problem After reading this post problem was solved
ReplyDeleteThanks Timo, i have faced the same problem After reading your post problem was solved
ReplyDeleteThanks Timo, it worked for me too
ReplyDeletewell done! super
ReplyDeleteThanks Timo!
ReplyDeleteIt worked for me :)
Hi Timo, I was experiencing the exact same thing, using your change solved my problem
ReplyDeletethank you very much !
@ Timo
ReplyDeletethanks
@Timo is right!
ReplyDelete