Spring 3's RestTemplate can't find Jackson Mapping class in dm Server 2.0.0.RC1
I'm trying to use RestTemplate.getForObject in my bundle, but I'm getting the following exception:
Code:
Caused by: java.lang.NoClassDefFoundError: org/codehaus/jackson/map/type/TypeFactory
at org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.canRead(MappingJacksonHttpMessageConverter.java:91)
at org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.doWithRequest(RestTemplate.java:416)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:342)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:307)
at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:177)
My manifest has
Import-Bundle: com.springsource.org.codehaus.jackson;version="[1.0.0,1.0.0]",
com.springsource.org.codehaus.jackson.mapper;versi on="[1.0.0,1.0.0]"
but it looks like org/codehaus/jackson/map/type isn't being exported from com.springsource.org.codehaus.jackson.mapper
I'm also getting errors if I don't include the jackson bundles or I include the jaxb bundle.