Monday, March 12, 2012

Failed to load or instantiate TagLibraryValidator

Problem Usecase:
Downloaded the Apache Tag libraries and copied them in the web-inf /lib/jstl-libs/ folder.
Included the taglib directory in jsp page, compiled and deployed in Tomcat 6.
During runtime got the follwoing exception.

Exception Details [Truncated]:
org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:281)
org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInfoImpl.java:670)
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:249)
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:164)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:386)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java

Solution

Copy all the  the jstl  related jars directly under the web-inf/lib folder in the application.

No comments :

Post a Comment