Original post by damien.gouyette at
http://code.google.com/p/grails-jaxrs/issues/detail?id=1#c6:
> With 0.1, it's works out of the box with java 6.
> With 0.2 i get the following message :
>
> A message body writer for Java type, class grails.converters.XML, and MIME media
> type, text/plain, was not found.
This message is what I would expect. The message body writer
responsible for writing grails.converters.XML objects is
org.grails.jaxrs.provider.XMLWriter which produces text/xml responses.
The getMeasures() method however defines production of text/plain. Try
changing it to text/xml or just leave it out then it should work.
>
> The called method was :
>
> @GET
> @Produces("text/plain")
> @Path("/all")
> Response getMesures(){
> Response.ok(Mesure.findAll() as XML).build()
> }
> it's seems that jaxb is required. You should add this point to your install
> documentation.