tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gurumoorthy" <g.raghupa...@btinternet.com>
Subject Re: Tomcat 5.0 + Apache 2.0 + ErrorDocument
Date Fri, 17 Jun 2005 18:40:06 GMT
in your Apache

PUT

ErrorDocument 400 /errors/404.jsp
ErrorDocument 500 /errors/500.jsp

And move /errors/404.jsp  and /errors/404.jsp  to the context path .. .not
in WEB-INF as apache wont be able to see the code in WeB-INF  ( UNLESS YOU
ALIAS IT WHICH I DONT THINK IS A GOOD IDEA )

Any Doubts ? Give me a shout ...
----- Original Message -----
From: "Ben" <newreaders@gmail.com>
To: "Tomcat" <tomcat-user@jakarta.apache.org>
Sent: Friday, June 17, 2005 1:39 PM
Subject: Tomcat 5.0 + Apache 2.0 + ErrorDocument


Hi

I would like to have Tomcat handle all the error documents, how can I
do this? At this stage, whenever there is a page not found, I see an
Apache error page. I have already setup mod_jk.

I have this:

JKMount /*.jsp ajp13

In my web.xml, I have this:

<error-page>
<error-code>404</error-code>
<location>/WEB-INF/errors/404.jsp</location>
</error-page>

My mod_jk log has the following lines:

jk_handler::mod_jk.c (1952): No body with status=404 for worker=ajp13
jk_handler::mod_jk.c (1952): No body with status=404 for worker=ajp13

Somehow I can't see my /WEB-INF/errors/404.jsp when there is a page not
found.

Thanks,
Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message