首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

tomcat 七: IllegalArgumentException: taglib definition not consistent with specif

2012-08-31 
tomcat 7: IllegalArgumentException: taglib definition not consistent with speciftomcat7,部署tomcat6

tomcat 7: IllegalArgumentException: taglib definition not consistent with specif
tomcat7,部署tomcat6下的项目统,报tomcat 7: IllegalArgumentException: taglib definitionnotconsistentwithspecificationversion错误,
查看日志发现,是web.xml下引入taglib标签的方式有了新的配置要求。
tomcat7.0前版本web.xml中taglib配置如下:
<web-app>
     <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>
</web-app>
tomcat7.0后版本taglib配置如下:
<web-app>
<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>

热点排行
Bad Request.