json - Issue upgrading from Jackson 1.9 to 2.5 using Spring 3.1.2 - ProviderBase class not found -
i'm trying upgrade current project jackson 1.9 2.5. going until tried startup 7 server , receive error:
org.springframework.beans.factory.cannotloadbeanclassexception: error loading class [com.fasterxml.jackson.jaxrs.json.jacksonjaxbjsonprovider] bean name 'jaxbprovider' defined in servletcontext resource [/web-inf/spring/applicationcontext-configuration.xml]: problem class file or dependent class; nested exception java.lang.noclassdeffounderror: com.fasterxml.jackson.jaxrs.base.providerbase
this appears in relation trying register jackson provider in web.xml below:
<!-- jackson provider --> <bean id="jaxbprovider" class="com.fasterxml.jackson.jaxrs.json.jacksonjaxbjsonprovider" > <property name="mapper" ref="jacksonobjectmapper"/> </bean> <bean id="jacksonobjectmapper" class="com.fasterxml.jackson.databind.objectmapper" > <property name="annotationintrospector" ref="jacksonannotationintrospector"></property> </bean> <bean id="jacksonannotationintrospector" class="com.fasterxml.jackson.databind.introspect.annotationintrospectorpair" > <constructor-arg ref="primaryannotationintrospector" /> <constructor-arg ref="secondaryannotationintrospector" /> </bean> <bean id="primaryannotationintrospector" class="com.fasterxml.jackson.module.jaxb.jaxbannotationintrospector" /> <bean id="secondaryannotationintrospector" class="com.fasterxml.jackson.databind.introspect.jacksonannotationintrospector" />
i have following jars on classpath:
jackson-annotations-2.5.0.jar jackson-core-2.5.0.jar jackson-databind-2.5.0.jar jackson-jaxrs-json-provider-2.5.0.jar jackson-module-jaxb-annotations.2.5.0.jar
now understanding looking fellow:
com.fasterxml.jackson.jaxrs.base.providerbase
but can't find it. google search reveals class belonging
jackson-jaxrs-provider project, can't find specific jar that. think that's because base jackson-jaxrs-json-provider.2.5.0.jar included. shouldn't inherently able see base class through jackson-jaxrs-json-provider.2.5.0.jar??
if has idea of wrong appreciative!
thanks.
if used maven, adding jackson-jaxrs-json-provider
dependency, see following pulled in
(i had image post v2.2.3- disregard version)
as can see, does depend on jackson-jaxrs-base
, providerbase
located.
you can download here (just click 2.5.0, download bundle)
Comments
Post a Comment