Tomcat7.0启动报错:java.lang.illegalargumentexception:taglib definition not consisten with specification version

2023-05-03,,

Tomcat7.0启动报错:java.lang.illegalargumentexception:taglib definition not consisten with specification version

原因:Tomcat7和Tomcat6在标签配置上稍有不同。

解决:

You just need to confirm the allowed tags by web.xml confirming DTD file. e.g. version=”2.5″ compatible web.xml wants you to define the taglibs in following way.

<jsp-config>
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-nested</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>
</jsp-config>

Tomcat7.0启动报错:java.lang.illegalargumentexception:taglib definition not consisten with specification version的相关教程结束。

《Tomcat7.0启动报错:java.lang.illegalargumentexception:taglib definition not consisten with specification version.doc》

下载本文的Word格式文档,以方便收藏与打印。