Java NoClassDefFoundError: org/codehaus/jackson/Versioned using Jackson JSON parser

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24488888/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-14 12:32:29  来源:igfitidea点击:

NoClassDefFoundError: org/codehaus/Hymanson/Versioned using Hymanson JSON parser

javajsonspringspring-mvcHymanson

提问by Mr Morgan

I have a Spring MVC REST project and I am being given the following message when I try to build the application:

我有一个 Spring MVC REST 项目,当我尝试构建应用程序时收到以下消息:

NoClassDefFoundError: org/codehaus/Hymanson/Versioned

NoClassDefFoundError: org/codehaus/Hymanson/Versioned

I believe this is to do with the implementation of Hymanson's JSON parser in the application but I am using:

我相信这与应用程序中 Hymanson 的 JSON 解析器的实现有关,但我正在使用:

 Hymanson-annotations-2.4.0.jar 
 Hymanson-core-2.4.1.jar
 Hymanson-databind-2.4.1.jar

采纳答案by Jens

This class is part of the Hymanson-core-asl.jarinclude it in the classpath.

此类是将其Hymanson-core-asl.jar包含在类路径中的一部分。