You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ben <ne...@gmail.com> on 2005/06/17 14:39:20 UTC

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


Re: Tomcat 5.0 + Apache 2.0 + ErrorDocument

Posted by Gurumoorthy <g....@btinternet.com>.
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" <ne...@gmail.com>
To: "Tomcat" <to...@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