> When I try to execute a PUT against http://localhost:8080/users/{id} I get: > > WARNING: WebApplicationException has been caught : Unrecognized field > "id" (Class com.ws.dto.UserDto), not marked as ignorable > at [Source: org.apache.cxf.transport.http.AbstractHTTPDestination$1@1e0969b; > line: 1, column: 8] (through reference chain: > com.ws.dto.UserDto["id"]) > > Does anyone know what the problem is and how to resolve it? > > Below is the relevant class: > > @PUT > @Path("/{id}") > @Consumes("application/json") > @Transactional > public Response update(@PathParam("id") Long id, UserDto userDto) { > ... > } > > Thanks. > > -Ari
I don't believe this is the issue, but I have another resource method, which shares the same path i.e. http://localhost:8080/users/{id}: @GET @Path("/{id}") @Produces("application/json") @Transactional(readOnly=true) public Response show(@PathParam("id") int id) { ... }
