Wildfly 9 - How do I exclude Jackson

user3029642

I'm running into a Jackson serialization issue with null values in maps. Apparently this is a known bug in the Jackson version used by Wildfly 9 (https://issues.jboss.org/browse/WFLY-4906). I'd like to use the current version of Jackson; however, I'm having trouble excluding the version used by Wildfly. I tried excluding the module in jboss-deployment-structure.xml but the exclusion is not working.

jboss-deployment-structure.xml

Any idea how I can get this to work?

Marty

I just ran into this issue myself.

After upgrading a library in my application, I received the following error on a request:

Exception handling request to /path: java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonParser.hasToken(Lcom/fasterxml/jackson/core/JsonToken;)

Here is how I solved it:

I obviously had to exclude jackson-core-2.5.1 that wildfly-9 provides.

I listed all modules that depend on 'jackson-core' with /opt/wildfly/modules# grep -R 'jackson-core'

Then I created a jboss-deployment-structure.xml in my WEB-INF folder:

<jboss-deployment-structure>
    <deployment>
        <exclusions>
            <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" />
            <module name="org.jboss.resteasy.resteasy-jackson2-provider" />
        </exclusions>
    </deployment>
</jboss-deployment-structure>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Wildfly 9 - How do I exclude Jackson

From Dev

How do I get Wildfly to use additional Jackson Datatypes?

From Dev

How do I get Wildfly to use additional Jackson Datatypes?

From Dev

How do I enable on-the-fly compilation of JSPs in Wildfly 9?

From Dev

How to configure Jackson in Wildfly?

From Dev

How do I turn off Hibernate debug logging in JBoss Wildfly 9?

From Dev

How do I encrypt the bindCredential password in Wildfly?

From Dev

How do I connect a STOMP client to Wildfly?

From Dev

How do I exclude Repositories in Spring tests?

From Dev

How do I exclude a specific record in SQL?

From Dev

How do I exclude weekends in SQL?

From Dev

How do i exclude the whitespace matches in this regex?

From Dev

How do i exclude negative numbers in an if loop?

From Dev

How do I exclude certain variable parts?

From Dev

How do I exclude search results in ActiveRecord?

From Dev

How do I exclude `.` and `..` from a directory listing

From Dev

How do i exclude negative numbers in an if loop?

From Dev

How do I exclude Repositories in Spring tests?

From Dev

How do I deserialize timestamps that are in seconds with Jackson?

From Dev

How do I set java:comp/DefaultDataSource in WildFly?

From Dev

How do I make JNDI names compatible with both GlassFish and WildFly

From Dev

how can i do for an MDB to deploy last on my wildfly

From Dev

How do I specify a Wildfly server version when using wildfly-maven-plugin?

From Java

How to exclude super class properties using Jackson

From Dev

RESTEasy + Jackson: how to exclude fields in the response?

From Dev

How can I replace Wildfly 9's default SessionManager with a custom implementation for all web apps?

From Dev

How do I fix Wifi in Debian 9?

From Dev

How do I zip up a folder but exclude the .git subfolder

From Dev

How do I exclude a package for a specific findbugs rule

Related Related

  1. 1

    Wildfly 9 - How do I exclude Jackson

  2. 2

    How do I get Wildfly to use additional Jackson Datatypes?

  3. 3

    How do I get Wildfly to use additional Jackson Datatypes?

  4. 4

    How do I enable on-the-fly compilation of JSPs in Wildfly 9?

  5. 5

    How to configure Jackson in Wildfly?

  6. 6

    How do I turn off Hibernate debug logging in JBoss Wildfly 9?

  7. 7

    How do I encrypt the bindCredential password in Wildfly?

  8. 8

    How do I connect a STOMP client to Wildfly?

  9. 9

    How do I exclude Repositories in Spring tests?

  10. 10

    How do I exclude a specific record in SQL?

  11. 11

    How do I exclude weekends in SQL?

  12. 12

    How do i exclude the whitespace matches in this regex?

  13. 13

    How do i exclude negative numbers in an if loop?

  14. 14

    How do I exclude certain variable parts?

  15. 15

    How do I exclude search results in ActiveRecord?

  16. 16

    How do I exclude `.` and `..` from a directory listing

  17. 17

    How do i exclude negative numbers in an if loop?

  18. 18

    How do I exclude Repositories in Spring tests?

  19. 19

    How do I deserialize timestamps that are in seconds with Jackson?

  20. 20

    How do I set java:comp/DefaultDataSource in WildFly?

  21. 21

    How do I make JNDI names compatible with both GlassFish and WildFly

  22. 22

    how can i do for an MDB to deploy last on my wildfly

  23. 23

    How do I specify a Wildfly server version when using wildfly-maven-plugin?

  24. 24

    How to exclude super class properties using Jackson

  25. 25

    RESTEasy + Jackson: how to exclude fields in the response?

  26. 26

    How can I replace Wildfly 9's default SessionManager with a custom implementation for all web apps?

  27. 27

    How do I fix Wifi in Debian 9?

  28. 28

    How do I zip up a folder but exclude the .git subfolder

  29. 29

    How do I exclude a package for a specific findbugs rule

HotTag

Archive