tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aron Kramlik" <aron.kram...@tenzing.com>
Subject error page deployment descriptor
Date Tue, 11 Jul 2000 18:44:37 GMT
Hello,

I have encountered a problem when I added the error page element to the
web deployment descriptor.  It's complaining something about the tag library
DTD.  I am using Tomcat 3.1 and Apache 1.3.9 on Linux (RedHat and/or
Mandrake).
I have 3 application contexts (air, gcs, portal).
In the tomcat/webapps/air/WEB-INF/web.xml I added the following to the
webapps element.

    <error-page>
        <error-code>
       404
        </error-code>
        <location>
           http://localhost/air/inaccessibleURL.html
        </location>
    </error-page>

I get an error when I access a JSP.  I use custom tags and the DTD for this
is specified in the same web.xml file as:

    <taglib>
        <taglib-uri>
       http://localhost/air/gcs-taglib
        </taglib-uri>
        <taglib-location>
           /WEB-INF/jsp/gcs-taglib.tld
        </taglib-location>
    </taglib>

I have the DTD in the following file system location:
tomcat/webapps/air/WEB-INF/jsp/gcs-taglib.tld

The error when I access a JSP is:
   Internal Servlet Error:
org.apache.jasper.JasperException: Unable to open taglibrary
http://localhost/gcs/gcs-taglib : Parse Error in the
 tag library descriptor: Element "web-app" does not allow "error-page" here.
        at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:672)
        at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.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(JspSe
rvlet.java:149)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va: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.RequestDispatcherImpl.forwardRequestDispatcherImpl.ja
va:163)
        at
com.tenzing.servlet.RequestContextImpl.forward(RequestContextImpl.java:149)
        at
com.tenzing.servlet.jsp.JSPLauncherServlet.processJSP(JSPLauncherServlet.jav
a:198)
        at
com.tenzing.servlet.jsp.JSPLauncherServlet.doGetDerivedJSPLauncherServlet.ja
va:149)
        at
com.tenzing.servlet.ServletBase.handleRequest(ServletBase.java:306)
        at com.tenzing.servlet.ServletBase.doGet(ServletBase.java:146)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        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.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:156)
        at
org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:366)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:411)
        at java.lang.Thread.run(Thread.java:475)

Thanks for your help,

Aron
---

Aron Kramlik
Software Engineer
Tenzing Communications Inc, Seattle WA
aron.kramlik@tenzing.com
425-895-2708





Mime
View raw message