升木 发表于 2017-2-3 07:52:25

tomcat 7: IllegalArgumentException: taglib definition not consistent with specif

  


最近下载了tomcat7,部署了还来的系统,发现报tomcat 7: IllegalArgumentException: taglib definition not consistent with specification version错误,仔细查找一下发现,原来在web.xml中,针对taglib节点有了新的配置要求,原来的:
 
 



<web-app>
<taglib>
<taglib-uri>/WEB-INF/tlds/PortalModule.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/PortalModule.tld</taglib-location>
</<span class="hilite">taglib</span>>
</web-app>
 tomcat 7 需要:



<web-app>
<jsp-config>
<taglib>
<taglib-uri>/WEB-INF/tlds/PortalModule.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/PortalModule.tld</taglib-location>
</<span class="hilite">taglib</span>>
</jsp-config>
</web-app>
 
 
页: [1]
查看完整版本: tomcat 7: IllegalArgumentException: taglib definition not consistent with specif