I'm trying to migrate a web application to OSGi (Virgo) and now I run into the following problem: 406 - The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.
The application uses spring-web and jackson. On the Virgo platform it seems to have problems to produce JSON.
What I find is that the MappingJacksonHttpMessageConverter is not configured.
Is there a way to make spring-web and jackson work on Virgo?
First of all: Thanks for your reply! I was thinking nobody would answer.
To answer your question: I'm using Virgo 3.6.1 but updated (the user region) to Spring 3.2.2. I had to update because of issues with CGlib and using spring java config.
To answer my own question: Adding jackson-core-asl and jackson-mapping-asl to repository/ext/ solves the problem. The jackson library must be resolved before spring-web is resolved to make the org.codehaus.jackson.map.ObjectMapper available when the org.springframework.http.converter.json.MappingJacksonHttpMessageConverter loads.
Thanks for sharing back!, I did follow your instruction and it is now fixed for me as well!
Not sure what could be the difference in terms of bundle resolution as I was previously manually deploying the Jacksons using AdminConsole, think will need to dig deeper into the order of loading of kernel and user region bundles?!
Anyway, thanks again!
PS ... Apologizes for miss spelling your name in previous post!