users@jersey.java.net

Re: [Jersey] Webkit issue for revisions after 1.1.3-ea

From: Daniel Shaw <java_at_dshaw.com>
Date: Mon, 30 Nov 2009 01:50:04 -0500

Thanks Daniel. I'll give that a try.

Daniel Shaw
i: http://dshaw.com
c: http://www.linkedin.com/in/dshaw


On Sun, Nov 29, 2009 at 1:44 PM, Daniel Larsson
<daniel.j.larsson_at_gmail.com>wrote:

> The problem may be that Safari (at least) prefers application/xml over
> application/xhtml+xml and text/html, and you have GET methods for both
> representations. A workaround is to use
> the @ImplicitProduces({"text/html;qs=4", "application/xhtml+xml;qs=5"})
> annotation on your resource class, to make Jersey pick HTML rather than XML.
>
>
> On Sat, Nov 28, 2009 at 9:43 PM, Daniel Shaw <java_at_dshaw.com> wrote:
>
>> We're using MVCJ backing some JSPs and on any of the revisions after
>> 1.1.3-ea, I'm getting the following error for any Webkit browser (Safari and
>> Chrome, in my case tested on Mac): "Resource interpreted as document but
>> transferred with MIME type application/xml." In every case, Webkit does not
>> even process the page. View source shows a blank page. Firefox loads
>> everything without any problems.
>>
>> I've been digging through the change logs to try to find what might be
>> going on. However, I have yet to come up with a lead. I'm hoping someone
>> else has encountered the same issue. Thanks.
>>
>> Daniel Shaw
>> i: http://dshaw.com
>> c: http://www.linkedin.com/in/dshaw
>>
>
>