Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring 4.3.7 is throwing java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/util/DefaultIndenter

When I am migrating from spring 4.3.4 to 4.3.7 I am facing NoclassDefined error after adding Jackson-core dependency

Caused By: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/util/DefaultIndenter

I tried to add jackson-core

<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-core</artifactId>
    <version>2.8.5</version>
</dependency>

dependency also but no luck

Any one who can shed some light on this would be appreciated.

Thanks Vinod

like image 905
Vinod Sidiginamale Avatar asked Jul 12 '17 14:07

Vinod Sidiginamale


1 Answers

I had this problem, with Spring 4.3.22.RELEASE and jackson-databind 2.2.3, I only had to upgrade to 2.9.8 and problem solved.

like image 164
OJVM Avatar answered Sep 27 '22 16:09

OJVM