Apr 18, 2012

junit NoClassDefFoundError: org/codehaus/jackson/map/ObjectMapper

Got this error while trying to run one of my junits.
This junit annotated with spring annotations and works with spring-web3.0.5-RELEASE.

After a lot of digging, it seems that the issue is simple.
You need to add this to your pom :


Jackson 1.4.2 suite to spring-web3.0.5

Problem caused since the jackson dependency in spring-web is an optional=true.

No comments:

Post a Comment