0 Replies Latest reply on Mar 8, 2015 9:16 AM by Josef Straub

    How to migrate my Resteasy-Jackson based application from Jboss 7.2.0 to WildFly 8.2.0

    Josef Straub Newbie

      Hi,

      obviously WildFly 8.2.0 uses the "resteasy-jackson2-provider" even I want to have it excluded from my EAR with this entries in the jboss-deployment-structure.xml:

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">

        <ear-subdeployments-isolated>false</ear-subdeployments-isolated>

        <deployment>

        <exclusions>

                  <module name="org.jboss.resteasy.resteasy-jackson2-provider" />

              <module name="com.fasterxml.jackson.core.jackson-annotations"/>

              <module name="com.fasterxml.jackson.core.jackson-core"/>

              <module name="com.fasterxml.jackson.core.jackson-databind"/>

              <module name="com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider"/>         

              </exclusions>

      ...

      <dependencies>

        ....

        <module name="org.jboss.resteasy.resteasy-jackson-provider"     export="true" services="import" />

       

      The NPE exception shows me that the @org.codehaus.jackson.annotate.JsonTypeInfo is ignored on my parent classes and the stacktrace discloses it as well, that "fasterxml" is still used:

      Caused by: java.lang.NullPointerException

              at com.ge.hac.ca.ea.ext.PrescrPreparationCompositionExt.getAmountConvertor(PrescrPreparationCompositionExt.java:285) [hac-entity-objects-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_65]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_65]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_65]

              at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_65]

              at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:466) [jackson-databind-2.4.1.jar:2.4.1]

              at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639) [jackson-databind-2.4.1.jar:2.4.1]

              ... 57 more

       

      TIA for any hint.

      Josef