Some info is here :
http://cxf.apache.org/docs/jax-rs.html#JAX-RS-Resourcemethodsandmediatypes
I am setting the @Produces("text/html") and the following exception is thrown:
>> No message body writer found for response class Myclass
It means that there's no writer has been registered which can convert an
instance of Myclass into html page.
cheers, Sergey
----- Original Message -----
From: "Nishant Chandra" <[email protected]>
To: <[email protected]>
Sent: Monday, September 21, 2009 6:46 AM
Subject: Re: REST and MediaType
Any help on this please.
Nishant
On Sat, Sep 19, 2009 at 7:46 PM, Nishant Chandra
<[email protected]> wrote:
Hi,
I am setting the @Produces("text/html") and the following exception is thrown:
No message body writer found for response class Myclass
How do I configure for "text/html". Is there any wiki to do so?Also,
Is there a way to support multiple media types?
Thanks,
Nishant Chandra
--
Nishant Chandra
Hyderabad, India
Cell : +91 9949828480