Jackson: java.lang.IllegalStateException: Failed to load ApplicationContext

 

Problem

java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z at com.fasterxml.jackson.databind.ObjectMapper.<init>

Solution

Several of dependencies where dependent on jackson.databind artifact (some of them probably on older versions).   Adding the following to pom.xml fixed the problem:

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

For some of the packages the dependency had to be moved towards the top.

 

 

kwds: maven test junit testng spring

About Neil Rubens

see http://ActiveIntelligence.org

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*