Saturday, March 10, 2012

tomcat 7 taglib definition not consist issue

I have encountered this when i tried to port a java war file which is previously deployed in tomcat 6.0.13 to newest tomcat version tomcat 7.0.14

when the web container trying to deploy the .war file it throws an exception saying that

jndi:/localhost/application/WEB-INF/web.xml
java.lang.IllegalArgumentException: taglib definition not consistent with application version

and i when i googled for this problem i found only one mail thread regarding this tomcat 7 issue 

and i tried with all the options described their and finally found the solution that is write tags inside of which resolve the problem


  
  <jsp-config>
      <taglib>
          <taglib-uri>
              http://metawerx.net/mapp/taglibs
          </taglib-uri>
          <taglib-location>
              /WEB-INF/mapp.tld
          </taglib-location>
     </taglib>
  </jsp-config>


for more details about refer this site

No comments:

Post a Comment