users@glassfish.java.net

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

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 12 Jan 2010 17:47:35 +0100

On Jan 12, 2010, at 5:30 PM, glassfish_at_javadesktop.org wrote:

> Well, GlassFish has sure made it difficult for me until I figured
> out a work around. I am using GlassFish 2.1 which was not designed
> with JAX-RS in mind. Maybe GlassFish V3 is aware of this issue and
> does not interfere with JAX-RS error responses.
>

Unfortunately not. Basically a JAX-RS application is deployed as a
servlet so the behavior is the same as any deployed servlet.

I recommend logging a bug against GF stating that default error pages
should be disabled (or as a compromise a feature is supported to
disable default error pages).

Paul.