首页 新闻 会员 周边 捐助

NoClassDefFoundError: MappingJackson2HttpMessageConverter

0
悬赏园豆:20 [已关闭问题] 关闭于 2019-02-26 15:08

在Eclipse运行旧的springmvc程序,org.springframework-spring-webmvc版本3.1.2。
程序中的一个json文件出现错误:Expected value at 1:0

程序运行后(eclipse的jetty插件),出现下面的错误:
Unexpected exception parsing XML document from file
nested exception is java.lang.NoClassDefFoundError:
org/springframework/http/converter/json/MappingJackson2HttpMessageConverter

参考了下面3篇博文,可都没有结局此问题:
Spring集成JSON报错:java.lang.ClassNotFoundException: org.codehaus.jackson.JsonProcessingException
https://blog.csdn.net/jiaotuwoaini/article/details/52366057

Springmvc 中org.springframework.http.converter.json.MappingJackson2HttpMessageConverter依赖jackson包
https://www.cnblogs.com/lonecloud/p/7422425.html

导入项目启动报错Unexpectedexception parsing XML document from file[H:\software\apache-tomcat-7.0.77\webapps https://blog.csdn.net/u013067756/article/details/72683216
----

安装了JDK7,不能运行;
安装了Tomcat 7,也不能运行;

MappingJackson2HttpMessageConverter到底要怎么获得呢?
要用这个,不是的springframework 4.*吗?我这里却是3.1啊!

HELP!

问题补充:

nested exception is java.lang.NoClassDefFoundError: org/springframework/http/converter/json/MappingJackson2HttpMessageConverter

org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:prj-part1-*.xml]|Offending resource: ServletContext resource [/WEB-INF/prj-part1-servlet.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file

快乐的欧阳天美1114的主页 快乐的欧阳天美1114 | 老鸟四级 | 园豆:4010
提问于:2019-02-25 20:20
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册