users@jersey.java.net

Re: [Jersey] entities encoding issues in the response

From: Arul Dhesiaseelan <arul_at_fluxcorp.com>
Date: Fri, 16 May 2008 08:48:15 -0600

Paul,

Sorry, this error seems to have occurred when the CXF service was down.
Now I started both the services and I see this error go away. Lookslike,
Jersey is now able to find my custom messagebodywriter.

INFO: Provider classes found:
  class rest.jaxb.CDATAProvider

But when I invoke the REST method, I still see this un-encoded CDATA.

<cell>&lt;![CDATA[&lt;div class=&quot;progressOuterRow&quot;&gt;&lt;
div class=&quot;progressInnerRow&quot; style=&quot;width:
0px;&quot;&gt;&lt;/div
&gt;&lt;div class=&quot;progressText&quot;&gt;0/0
MB&lt;/div&gt;&lt;/div&gt;]]&g
t;</cell>

Am I missing something?

Thanks for all the help.

Regards,
Arul


Paul Sandoz wrote:
> Hi Arul,
>
> That error appears independent of the RESTful service, is that the
> case? i.e. this error would be reproducible if you wrote some stand
> alone Java code to invoke a CXF JAX-WS Service ?
>
> More specifically the problem appears to be with the XML document
> returned from the CXF JAX-WS Service. The client is having trouble
> parsing it, most likely for the reason that Tatu gives.
>
> Paul.
>