1 Reply Latest reply on Mar 31, 2017 7:10 AM by Anup Dey

    JBoss-provided module exclusion

    sgr57 Newbie


      I am having trouble loading specific version of some jar when deploying my WAR in JBoss EAP 6.4

      I'm trying to force jboss to use my jackson jar version adding jboss-deployment-structure.xml in order to prevent jboss's jackson jar loads, but it seems not working properly.


      Here is my war structure:




      |--- WEB-INF


           |--- lib

           |    |

           |    |--- jackson-core-asl-1.8.3.jar

           |    |--- jackson-jaxrs-1.8.3.jar

           |    |--- jackson-mapper-asl-1.8.3.jar

           |    |--- jackson-xc-1.8.3.jar

           |    |--- jettison-1.1.jar


           |--- jboss-deployment-structure.xml


      My jboss-deployment-structure.xml :


      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
                  <module name="org.codehaus.jackson.jackson-core-asl" />
                  <module name="org.codehaus.jackson.jackson-jaxrs" />
                  <module name="org.codehaus.jackson.jackson-mapper-asl" />
                  <module name="org.codehaus.jackson.jackson-xc" />
                  <module name="org.codehaus.jettison" />


      Even if I've excluded jackson modules JBoss loads his own version of jackson (-1.9.9.redhat-4), any idea about how to force loading of my jackson jar ?


      Thank you.

        • 1. Re: JBoss-provided module exclusion
          Anup Dey Expert

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





                      <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" />