You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/12/27 23:50:23 UTC

BugRat Report #670 has been filed.

Bug report #670 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com/BugRatViewer/ShowReport/670>

REPORT #670 Details.

Project: Taglibs
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: high
Severity: serious
Confidence: public
Environment: 
   Release: 3.1.1
   JVM Release: 1.2.2.006 (blackdown)
   Operating System: linux
   OS Release: 2.2
   Platform: intel

Synopsis: 
Tomcat error including a taglib on a web.xml file containing a servlet tag

Description:
When calling an uncompiled JSP file that uses tag libraries, if the local web.xml file for this project contains <servlet></servlet> mappings in addition to the <taglib></taglib> mappings, an exception is thrown during JSP page compilation:

Internal Servlet Error:

org.apache.jasper.JasperException: Unable to open taglibrary /tagFiles : Parse Error in the tag library descriptor: Element "web-app" does not allow "servlet" here.
        at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:672)
        at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
        at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1073)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1034)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
        at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
        at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)
        at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
        at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
        at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
        at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
        at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
        at java.lang.Thread.run(Thread.java:475)

Once everything including and in between the <servlet> and </servlet> tags are commented, the page compiles OK.