users@jersey.java.net

[Jersey] Exception when using javax.ws.rs.client.Entity

From: Dana Ariel (daariel) <"Dana>
Date: Mon, 2 Sep 2013 06:36:01 +0000

Hi All,

I'm using jersey 2.2 in my server. When returning result upon POST call in the following way:

return Response.status(Response.Status.BAD_REQUEST).entity(Entity.text("incorrct list item request")).build();

I get the following error:

A descriptor for class javax.ws.rs.client.Entity was not found in the project.
For JAXB, if the JAXBContext was bootstrapped using TypeMappingInfo[] you must call a marshal method that accepts TypeMappingInfo as an input parameter.]

Any idea what could be the cause of that exception?

Thanks,
Dana.