Reputation: 827
Getting following exception when I have included:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
Exception:
java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
What I have done:
Upvotes: 1
Views: 1814
Reputation: 1
Solution in eclipse:
Right click on
nameYourProject->java build path -> libraries -> add external jars
Go
C:\Apachetomcat7\webapps\examples\WEB-INF\lib
Select all( jstl
and standart jar
), click open
after import jstl and standart jar in project.
Upvotes: 0
Reputation: 1109745
1: Included JSTL jar file WEB-INF/lib folder
Fine. That ought to be sufficient.
2: Included Classpath in Run Configuration (using Eclipse)
3: Included in Build path too.
Don't do. Eclipse does that automatically on 1. You need to undo all manual changes, they might make things worse.
I have included JSTL.jar(Version 1.2) and JSTL Standard.jar
Get rid of standard.jar
. JSTL 1.2 consists of only one JAR file. The standard.jar
might want to locate classes which doesn't exist in JSTL 1.2 anymore, resulting in this kind of abstract/dependency errors.
Upvotes: 2
Reputation: 85546
You need to include both jstl.jar and standard.jar in your WEB-INF/lib folder.
Upvotes: 0