users@glassfish.java.net

Re: JAX-RS error code 500 = GlassFish HTML error page

From: <glassfish_at_javadesktop.org>
Date: Thu, 14 Jan 2010 15:21:20 PST

What about when I configure custom error pages for 404, 500, etc. because my .war file contains a website, but the JAX-RS API in the same .war file needs to return 404 and 500 error codes? The custom error page should not be sent in the JAX-RS API responses. I don't have a good solution to offer.



> I like your suggestion of allowing to disable the
> default error page
> on a per-application basis via some configuration in
> sun-web.xml, and have
> reopened
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=
> 11423
> (the issue
> that Ryan had filed) so that it can be fixed
> accordingly.
>
> Thanks,
>
> Jan
[Message sent by forum member 'rdelaplante' (ryan_at_ijws.com)]

http://forums.java.net/jive/thread.jspa?messageID=381037