roe
roe

Reputation: 309

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?

Upvotes: 11

Views: 17965

Answers (1)

roe
roe

Reputation: 309

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

Upvotes: 17

Related Questions