Tomcat60 换 Tomcat7.0 项目启动异常IllegalArgumentException: taglib definition not consistent with specific

来源:互联网 发布:淘宝海运价格表 编辑:程序博客网 时间:2024/06/05 01:04

tomcat-7.0.5

异常:

 

异常代码  收藏代码
  1. java.lang.IllegalArgumentException: taglib definition not consistent with specification version  
 

 

解决:

在你所要加载的项目的web.xml 里修改  taglib标签外,加上jsp-config标签

 

例如代码  收藏代码
  1. <jsp-config>  
  2.     <taglib>  
  3.         <taglib-uri>/WEB-INF/xxx.tld</taglib-uri>  
  4.         <taglib-location>/WEB-INF/xxx.tld</taglib-location>  
  5.     </taglib>  
  6. </jsp-config>