Hi Martin, doesn't the example you listed involve the webapp actually
running to return a 503 in a particular circumstance?  I'm trying to handle
a 503 when the webapp is actually stopped, by the manager app/JMX.  So
nothing code/config wise in the webapp would fix the problem that I can
think of, it would have to be a code/config change for tomcat itself.  This
is why I was looking for the default request handling pipeline order.

In my initial browsing of the code...
org.apache.ajp.RequstHandler::decodeRequest(Ajp13 ch, Ajp13Packet msg,
BaseRequest req) int
The comments for the return value say...
"@return 200 in case of a successful decoduing, 500 in case of error."
But I'm still reading

Again if anyone has any info that can point me in the right direction, I
would appreciate it.

-Rick




-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Posted At: Tuesday, July 25, 2006 9:01 AM
Posted To: Tomcat Dev
Conversation: Possible to send 503 status over JK?
Subject: Re: Possible to send 503 status over JK?


If you dont mind handling this programmatically..check out this Filter for
503 errors http://java.sun.com/developer/JDCTechTips/2001/tt0626.html
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message -----
From: "Rick G" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <users@tomcat.apache.org>
Sent: Tuesday, July 25, 2006 11:21 AM
Subject: Possible to send 503 status over JK?


> Hi All,
>  I saw a similar question asked a while back about using a custom 503
> errorpage, but never saw an answer.  I'm looking to, if a page is
requested
> for a webapp that has been stopped, instead of returning the canned Tomcat
> 503 Error page, to have it return a 503 status code instead so that you
can
> have Apache handle it and show a custom (pretty) error page.  
> 
>  It seems like on a 503, Tomcat generates its own 503 page and returns
> status 200 so Apache doesn't know it needs to do something.  Some one
please
> correct me if I'm wrong and/or there is an easy solution to this.
> Otherwise, anyone familiar or have a link with the standard processing
> pipeline in tomcat 5.5.x and know the order of valve/filter execution that
> can point me in the right direction?
> 
> Thanks for any help,
> Rick G
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to