在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