Recently integrated with spring4.x jackson------>java.lang.classnotfoundexception:

Source: Internet
Author: User

Recently integrated with spring4.x Jackson, the results have been inexplicably error, the results of online collection is in Maven or gradle environment to configure the dependency conditions, but the eclipseide environment of the jar package should be automatically dependent on the innuendo. The result has not been found to solve the answer.

Later, it is really a way of wood, suspected version of the problem, the result is a version of the problem caused. spring4.x must use at least Jackson2.6 to match.

The error is as follows:

 <span style= "FONT-SIZE:18PX;" >java.lang.classnotfoundexception: Com.fasterxml.jackson.core.util.DefaultIndenter at Org.apache.catalina.loader.WebappClassLoaderBase.loadClass ( Webappclassloaderbase.java:  1308) at Org.apache.catalina.loader.WebappClassLoaderBase.loadClass (Webappclassloaderbase.java:  1142) </span 
 <span style= "FONT-SIZE:18PX;" >exception sending context initialized event to listener instance of class   Org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name  ' Org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter ': Instantiation of Bean failed; Nested exception is 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  </span> 
<span style= "FONT-SIZE:18PX;" >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/

Replacing Jackson's bag with more than 2.6 will solve it. Three core packages, available online.

Recently integrated with spring4.x jackson------>java.lang.classnotfoundexception:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.