I get the following exception when i consume a restful webservice using Spring RestTemplate
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
There are many implementations of "REST API" and they conflict with each other. After a lot of time, I resolved it with this configuration:
import com.fasterxml.jackson.annotation.JsonProperty;
...
@JsonProperty("cep")
private String cep;
Must have that JsonProperty with this package not org.codehaus...
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-client</artifactId>
<version>1.19</version>
<scope>test</scope>
</dependency>
In summary: jersey client 1, jackson json property and remove all others jaxrc libs.
Obs:. I used jackson because the container already provided, but, if it works for you, you could test another combinations.