Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

Upgrade to 6.7: Cannot find class [org.springframework.web.servlet.view.json.MappingJackson2JsonView]

$
0
0

Hi,

I've read the FAQs after trying to run my plugin against the 6.7 server (running in my local development environment). I have a problem that I believe is identified in the FAQs, but don't know how to solve it. There is some advice how to solve it, but I really need it to be spelt out so I can apply the fix.

The problem is as follows (from the FAQs):

Issue: MappingJacksonJsonView removed from Spring Framework Symptom: java.lang.ClassNotFoundException: org.springframework.web.servlet.view.json.MappingJacksonJsonView

Explanation: MappingJacksonJsonView has been replaced with a newer class.

Solution: Use org.springframework.web.servlet.view.json.MappingJackson2JsonView in bundle-context.xml file. Note: MappingJackson2JsonView imposes dependencies on additional Spring packages.

I need to know exactly what to add to the bundle-context.xml file please?

I've tried this:

<beanclass="org.springframework.web.servlet.view.json.MappingJackson2JsonView"><propertyname="contentType"value="application/json"/></bean>

 

but I still get the same error... Could you please state exactly what code needs to be added?

Many thanks,

Warren


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>