`
flashdream8
  • 浏览: 668264 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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>
 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics