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>

相关文章:

  • 2022-02-01
  • 2021-09-02
  • 2022-12-23
  • 2021-06-27
  • 2021-08-10
  • 2021-04-08
  • 2021-06-12
猜你喜欢
  • 2021-12-19
  • 2021-12-29
  • 2022-12-23
  • 2021-09-10
  • 2022-12-23
  • 2022-02-02
  • 2022-01-10
相关资源
相似解决方案