java.lang.NoClassDefFoundError: com.github.fge.jackson.JsonLoader

别来无恙 提交于 2019-12-18 09:54:12

问题


I am using github project 'json-schema-validator' and getting below error.

java.lang.NoClassDefFoundError: com.github.fge.jackson.JsonLoader
at ****************.getJsonNode(Service.java:63)
at ****************.getSchemaNode(Service.java:69)
at ****************.isJsonValid(Service.java:93)
at ****************.requestToSectionJSON(Controller.java:477)

I added jar files same as the github project.. but I don't know why it keeps getting this lib error.

(ignore *** part. it just my package name)

  • jackson-coreutils 1.9
  • json-schema-core 1.2.10
  • jackson-core 2.9.6
  • jackson-databind 2.9.6
  • jackson-annotation 2.9.6
  • msg-simple 1.1
  • btf 1.2
  • GUABA 16.0.1
  • json-schema-validator 2.2.10
  • joda-time 2.9.7
  • uri-template 0.9
  • RHINO 1.7.7.1
  • libphonenumber 8.0.0
  • jsr305 3.0.1
  • activation 1.1.1
  • mailapi 1.4.3
  • jotp simple 5.0.3

回答1:


Most of the times this error happens if you have wrong version of jars at runtime. Make sure you are using proper version of jackson-coreutils.jar (same version you used while compiling the code).



来源:https://stackoverflow.com/questions/52952963/java-lang-noclassdeffounderror-com-github-fge-jackson-jsonloader

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!