I create a Spring MVC project from Spring template using the STS plugin. However when I run the application there’s an error:
org.apache.jasper.JasperException: /WEB-INF/views/home.jsp(1,63) Unable to read TLD "META-INF/c.tld" from JAR file "file:/H:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/imgateway/WEB-INF/lib/jstl-1.2.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
Anyone have experienced this kind of issue?
I was facing with the same situation and I realize that the error is thrown, obviously, because something went wrong with JSTL. Since, STS templates rely on Maven2, you should need to manually delete the JSTL artifact from your local Maven2 repository.
In Windows 7:
Delete the folder
c:\Users\<Username>\.m2\repository\javax\servlet\jstl\.In Linux: Delete the folder
/home/<Username>/.m2/repository/javax/servlet/jstl/Note: This is not the fault of STS, it just happens when an artifact was corrupted while being downloaded from the Internet. Deleting the arfifact will force Maven2 to re-download it. Finally, it could happen with any artifact/file downloaded from the web.