users@jersey.java.net

Re: [Jersey] Take 2: Using MessageBodyWriters as Providers for an AccountList and an Account object

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 31 Oct 2008 19:31:31 +0100

On Oct 31, 2008, at 7:21 PM, Marc Hadley wrote:
>
>> That's not the case...the response is HTML with the
>> 404 text message. How can I create that response for an XML entity
>> type?
>>
> It sounds to me like you are running into either a servlet error
> page or an intermediate proxy or cache is translating the error for
> you. The latter sounds the most likely since you are returning a
> response from your method so servlet error pages shouldn't be used.
> Do you have a web proxy configured and is it possible to test
> without ?
>

I suspect the servlet web container is creating a default error page
because there is no entity built in the response.

Paul.