Hi David,
I guess it's because the server is started at the time you try to assign
error page generator.
Try to initialize non-started Grizzly HttpServer (it should be possible
to do in Jersey 2.x via GrizzlyHttpServerFactory), set the default error
page generator and then start the server.
Let us know if it worked.
Thanks.
WBR,
Alexey.
On 22.05.14 21:21, Dave Trombley wrote:
>
> Hi all -
>
> Can someone explain how to change the default error message
> (yellow/brown "Request Failed")? Several of the classes in the API
> have .setDefaultErrorPageGenerator(), and none of them seem to have
> any effect...
>
> I'm using Jersey and creating the server via
> GrizzlyHttpServerFactory.createHttpServer(uri, rc);
>
> Thanks,
> -David