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" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]