If it's allowed by servlet spec, we'll modify it in mod_jk,
the current Tomcat connector to web servers.


>I switched an application I was working on from JServ to 
>Jakarta and realized 
>there is a change in the way the response codes for the server 
>are being set. 
>Apache no longer "recieves" the response code the servlet sets 
>and therefore 
>can not do further processing. For context, I am using apache 
>1.3.12 with 
>mod_jserv from the 3.2.2 tomcat release.
>
>Here is the relevant code from the sample servlet
>
>public void doGet(HttpServletRequest req, HttpServletResponse res) {
>    res.sendError(503, "blah");
>}
>
>In my httpd.conf file I have the following line
>
>ErrorDocument 503 /foo.html
>
>When running against JServ I get the foo.html file served up 
>and the following 
>line in my access.log file:
>
>"GET /servlet/test HTTP/1.1" 503 10189 "-"

If 
>When running against Tomcat I get a "standard" tomcat error 
>message (which is 
>not what I want) and the following line in the log
>
>"GET /servlet/test HTTP/1.1" 200 129 "-"
>
>My guess is that tomcat is not setting some code in the 
>communication between 
>them however I am not familiar enough with the code to track it down.
>
>Any help (or a tomcat patch) would be appreciated
>
>Andrew
>

Reply via email to