tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aron Kramlik" <aron.kram...@tenzing.com>
Subject RE: error page deployment descriptor
Date Tue, 11 Jul 2000 19:17:15 GMT
Is this the standard DTD for servlets 2.2 or out DTD for the
custom tag library?  It seems to be complaining about our
custom tag library which has no mention of error-page obviously
but I am not sure where it checks for the standard servlets 2.2
DTD which I want to use.

The last element inside the web-app tag is error-page for me.
Can you see anything wrong with this?

Thanks again,
Aron.

-----Original Message-----
From: Nacho [mailto:nacho@siapi.es]
Sent: Tuesday, July 11, 2000 12:06 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: RE: error page deployment descriptor


You have a problem about order inside the web-app tag , check the DTD
for web.xml.


> -----Mensaje original-----
> De: Aron Kramlik [mailto:aron.kramlik@tenzing.com]
> Enviado el: martes 11 de julio de 2000 20:45
> Para: tomcat-user@jakarta.apache.org
> Asunto: error page deployment descriptor
> 
> 
> 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.handleDirecti
> ve(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.loadIfN
> ecessary(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(ServletWra
> pper.java:503)
>         at
> org.apache.tomcat.core.RequestDispatcherImpl.forwardRequestDis
> patcherImpl.ja
> va:163)
>         at
> com.tenzing.servlet.RequestContextImpl.forward(RequestContextI
> mpl.java:149)
>         at
> com.tenzing.servlet.jsp.JSPLauncherServlet.processJSP(JSPLaunc
> herServlet.jav
> a:198)
>         at
> com.tenzing.servlet.jsp.JSPLauncherServlet.doGetDerivedJSPLaun
> cherServlet.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(ServletWra
> pper.java:503)
>         at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
>         at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnection
> (Ajp12ConnectionHandler.java:156)
>         at
> org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.
> java:366)
>         at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.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