-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jacob,
On 3/16/15 2:52 PM, Jacob Haverkost wrote: > Version: 6.0.43 OS: Win7 x64 > > Currently, the CGIServlet does not appear to support using the 404 > error-page specified in the web.xml (ROOT). The error-pages work > fine > > This appears to be due to the line, res.setStatus(404);, inside of > doGet(). According to the documentation for > HttpServletResponse.setStatus(int), "If this method is used to set > an error code, then the container's error page mechanism will not > be triggered." > > This line appears in all major versions of Tomcat that I have > looked into (8.0.20, 7.0.59). > > Just for a quick test, I changed setStatus to sendError and the > error-page worked as expected. Is there a way to have the > error-page work without changing the source code? If not, should I > submit a bug report to include a configuration parameter for the > CGIServlet to allow support for the error-page? > > Thanks for any feedback or help you can provide. It seems reasonable to me to file an enhancement request for this. If you provide a patch, you can get your name into the changelog ;) - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJVBzo3AAoJEBzwKT+lPKRYkdsP/iutPC4vdDO8LkuwoiXZXM4S Gjh3rWAyqYgVzPq20B+sICkF1cFnovVJnCjdO8D1r2IdFyDcyJoTYDat28oEPqow +3K9vAQUPa+vp0il5YQsi3OuUuna511rH0aEcC4c8M9FyzsMXKLbwZVQu3TQSU2Y 5rImG1K9DODNEVhZA/XbkiOkJunn75D/84FdE3abb1fK9/gn1G/WOJdogelxUhPP FtwDdMK/TsgQM1hDOUF7ieGEYIKyZmzbrXIOnehd2zFAg/1smER9hHUvDGl4UXPd 9MorVWl7C0u74JVntBSrhHmfzUkqz96XG5JZc8mGAxZ9uFdJhvhQMQxCvttB9P7q jEdzJ7t2ZtARH71s0KZya3+r3/F9lkw1OCcF7ITBhRpE4C8Z8vLQqd7puG1mxiUm VIK/pNClVLG60a0L0fvjUJ1tLPEvY2p7SFf0TZ/7rBbGT9/xSqSWESflRLpNExiC SyzlPvilhDsvhyUxKv7L/SqoOqjoiYUtsJyVwVH+jW3JSoayYdq/V9ikTc6bAKaK 6qdBAqm5BXKg8rdYZXQ3OOIVmR/OBnDOTM0GyeeuDYtlhTezYA6Utj/SLorz1OIG viH90/rXWqSAbKrgt/L+YWBIWX4L9M7no+QRQeFKdnjeZpORg0MEkK6/s5pn7wFJ isXMVqWeMk/u6iez4uZ0 =ONFn -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org