I want to use Jackson2 with SpringRoboSpice
.
my libs folder contains the following jars .
as written here SpringAndroidSpiceService
will switch to jackson2
if jackson2 jars found.
the app crash with this exception:
java.lang.NoClassDefFoundError: org.codehaus.jackson.map.ObjectMapper
at org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.<init>(MappingJacksonHttpMessageConverter.java:54)
at com.octo.android.robospice.JacksonSpringAndroidSpiceService.createRestTemplate(JacksonSpringAndroidSpiceService.java:33)
at com.octo.android.robospice.SpringAndroidSpiceService.onCreate(SpringAndroidSpiceService.java:26)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2572)
at android.app.ActivityThread.access$1800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
What i am missing?
If you use Jackson 2, then you need to use a Jackson2SpringAndroidSpiceService
and not a JacksonSpringAndroidSpiceService
. The 2 matters :)