Hi,
I am working with spring 4.0.4 and jersey 2.7 and Gradle 1.11 suddelny out of nowhere i build and deployed to my tomcat 7 (latest release) and got the above error.
Worked to figure out what went wrong about an hour.
Than i saw that they released a new 2.8 lately, decided to try it - it worked +
Problem solved for me after upgrading from jersey 2.7 to 2.8
and adding this to my gradle dependencies
"org.glassfish.jersey.bundles.repackaged:jersey-guava:2.8"
Hopefully it will help you too,
Dor
Showing posts with label dependency. Show all posts
Showing posts with label dependency. Show all posts
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 :
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.4.2</version>
</dependency>
Jackson 1.4.2 suite to spring-web3.0.5
Problem caused since the jackson dependency in spring-web is an optional=true.
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 :
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.4.2</version>
</dependency>
Jackson 1.4.2 suite to spring-web3.0.5
Problem caused since the jackson dependency in spring-web is an optional=true.
Subscribe to:
Posts (Atom)