title: tomcat 7 taglib inconsistent specification version
body: <p>I have included the taglib as -</p>
  
  <pre><code>&lt;%@ taglib prefix="wf" uri="http://www.wrox.com/begjsp/el-functions-taglib" %&gt;
  </code></pre>
  
  <p>and the web.xml is</p>
  
  <pre><code>    &lt;web-app xmlns="http://java.sun.com/xml/ns/j2ee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_3_0.xsd"
  version="3.0"&gt;
         // some description and name
  
  
     &lt;taglib&gt;
      &lt;taglib-uri&gt;
         http://www.wrox.com/begjsp/el-functions-taglib
      &lt;/taglib-uri&gt;
      &lt;taglib-location&gt;
         /WEB-INF/jsp/function-taglib.tld
      &lt;/taglib-location&gt;
  &lt;/taglib&gt;
  </code></pre>
  
  <p>However, deploying this application gives following error log (catalina.out)</p>
  
  <blockquote>
    <p>INFO: Deploying web application archive
    /home/eanautg/2bkp/jsp/apache-tomcat-7.0.42/webapps/ch05.war</p>
    
    <p>Sep 8, 2013 5:57:39 PM org.apache.tomcat.util.digester.Digester
    startElement SEVERE: Begin event threw exception</p>
    
    <p>java.lang.IllegalArgumentException: taglib definition not consistent
    with specification version
        at org.apache.catalina.startup.TaglibLocationRule.begin(WebRuleSet.java:1274)
        at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:504)
    ...</p>
    
    <p>Sep 8, 2013 5:57:39 PM org.apache.catalina.startup.ContextConfig
    parseWebXml SEVERE: Occurred at line 13 column 16 Sep 8, 2013 5:57:39
    PM org.apache.catalina.startup.ContextConfig configureStart SEVERE:
    Marking this application unavailable due to previous error(s)</p>
  </blockquote>
  
  <p>I have tried to change schema and version number to 3.0 but in vain --</p>
  
  <pre><code>schema = "...web-app_3_0.xsd"
  version="3.0"&gt;`
  </code></pre>
  
  <p>I read on another thread that taglib should not be defined in web.xml. Then where should it be as per new spec ? Am I missing something ? please let me know.
  Thanks,
  Stacy.</p>