Did you annotate the User class?

https://github.com/tveronezi/photodb/blob/master/src/main/java/photodb/data/dto/UserInfo.java

[]s,
Thiago.



On Mon, Nov 25, 2013 at 1:26 PM, José Luis Cetina <[email protected]>wrote:

> Hi, im doing my first restful, im using tomee 1.6.0 jax-rs.
>
> I get this message when in my webpage:  No message body writer has been
> found for response class User.
>
> @GET
>     @Path("/user")
>     @Produces({"application/xml", "application/json"})
>     public User getUser(){
>         User usr = new User();
>         usr.setName("xx");
>         return usr;
>     }
>
>
>
> I never code any restful before.
>
>
> What im missing?
>

Reply via email to