Tomcat 7启动异常:java.lang.IllegalArgumentException: taglib definition not consisten
Tomcat 7启动异常:java.lang.IllegalArgumentException: taglib definition not consistent with specification version
异常代码:
java.lang.IllegalArgumentException:?taglib?definition?not?consistent?with specification?version
Tomcat7和Tomcat6在标签的配置上稍有所不同,如下:
解决:
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
>