Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlFmtTLV

今天遇到这个问题:

严重: Servlet.service() for servlet springServlet threw exceptionorg.apache.jasper.JasperException: /jsp/qyjg/index.jsp(3,61) Unable to read TLD "META-INF/c.tld" from JAR file "file:/D:/1workTools/1webapps/qyjg/WEB-INF/lib/jstl-1.2.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLVat org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:218)at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:183)

at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:386)

at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:450)

at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1399)

at org.apache.jasper.compiler.Parser.parse(Parser.java:130)

----------------------------------

解决方法:

问题产生是应为,project的lib和tomcat的lib下面都用jsp-api.jar;

在project的lib中删除jsp-api.jar,接着通过Build path的方式将tomcat的lib下面的jsp-api.jar引进来,

OK!问题解决。

你可能感兴趣的:(Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlFmtTLV)