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>