Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/TSFBuilder

I'm using maven and dropwizard, getting java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/TSFBuilder error when I initiate an Object Mapper.

Tried to override the dependency by adding com.fasterxml.jackson.core version 2.10.0 to POM (also tried a few other versions), but still getting the same error.

Any suggestion?

like image 624
roe Avatar asked Aug 04 '20 02:08

roe


1 Answers

Resolved. Check out below:

  • Use jackson.core version higher than 2.10.x
  • Whether your code also uses org.codehaus.jackson and it causes dependency conflicts
like image 106
roe Avatar answered Nov 15 '22 10:11

roe