tomcat 7: IllegalArgumentException: taglib
上一篇 /
下一篇 2011-10-11 16:33:08
tomcat7,部署tomcat6下的项目统,报tomcat 7: IllegalArgumentException: taglib definitionnotconsistentwithspecificationversion错误, 查看日志发现,是web.xml下引入taglib标签的方式有了新的配置要求。 tomcat7.0前版本web.xml中taglib配置如下: <taglib> <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri> <taglib-location>/WEB-INF/fmt.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jstl/fmt_rt</taglib-uri> <taglib-location>/WEB-INF/fmt-rt.tld</taglib-location> </taglib> tomcat7.0后版本taglib配置如下: <jsp-config> <taglib> <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri> <taglib-location>/WEB-INF/fmt.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jstl/fmt_rt</taglib-uri> <taglib-location>/WEB-INF/fmt-rt.tld</taglib-location> </taglib> </jsp-config> </web-app> |
收藏
举报
TAG:
definition
not
Tomcat
tomcat
TOMCAT
7:
taglib
consistent
with
specification
version