3 Replies Latest reply on Sep 18, 2017 7:52 AM by yvan khekhone

    How to exclude CXF jars that JBOSS 7.1.1 loads by default?

    Paulo Vivacqua Newbie

      We want to exclude CXF modules from JBOSS AS 7.1.1 from being loaded at runtime so that we can use CXF 2.7.8 dependencies declared in our pom. We do not have privilege to change JBoss´s configuration, so removing subsystem from standalone.xml or modules from JBoss are out of the question. We are also stuck on JBoss 7.1.1, no upgrade is possible at the moment.

      We tried configuring jboss-deployment-structure.xml as follows. Since 'exclude-subsystems' functionality and deployment-strucure:1.2 are not suported by JBoss AS 7.1.1 we tried this alternative approach without success:

      <jboss-deployment-structure>
         <deployment>
         <dependencies>
         <module name="org.apache.cxf" export="true" />
         </dependencies>
         <exclusions>
         <module name="asm.asm" />
         <module name="javax.api" />
         <module name="javax.annotation.api" />
         <module name="javax.jms.api" />
         <module name="javax.jws.api" />
         <module name="javax.mail.api" />
         <module name="javax.resource.api" />
         <module name="javax.servlet.api" />
         <module name="javax.xml.bind.api"/>
         <module name="com.sun.xml.bind"/>
         <module name="javax.wsdl4j.api" />
         <module name="javax.xml.soap.api" />
         <module name="javax.xml.stream.api" />
         <module name="javax.xml.ws.api" />
         <module name="org.apache.commons.lang" />
         <module name="org.apache.neethi" />
         <module name="org.apache.velocity" />
         <module name="org.apache.xml-resolver" />
         <module name="org.apache.ws.xmlschema" />
         <module name="org.apache.ws.security" />
         <module name="org.apache.santuario.xmlsec" />
         <module name="org.springframework.spring"/>
         </exclusions>
         </deployment>
      </jboss-deployment-structure>
      
      
      

       

      StackTrace


      14:24:14,429 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jaxb-api.jar in "/F:/Desenvolvimento/Programas/jboss-as-7.1.1.Final_Clean/jboss-as-7.1.1.Final/standalone/deployments/Test.war/WEB-INF/lib/jaxb-impl-2.2.6.jar"  does not point to a valid jar for a Class-Path reference.
      14:24:14,618 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015893: Encountered invalid class name 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' for service type 'org.xmlpull.v1.XmlPullParserFactory'
      14:24:14,791 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) JBAS018567: Deployment "deployment.Test.war" is using a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.
      14:24:14,793 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) JBAS018567: Deployment "deployment.Test.war" is using a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.
      14:24:14,840 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.deployment.unit."Test.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."Test.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "Test.war"
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]
        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]
      Caused by: java.lang.RuntimeException: Error getting reflective information for class org.apache.cxf.transport.servlet.CXFServlet with ClassLoader ModuleClassLoader for Module "org.apache.cxf:main" from local module loader @5e2b323e (roots: F:\Desenvolvimento\Programas\jboss-as-7.1.1.Final_Clean\jboss-as-7.1.1.Final\modules)
        at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)
        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:85)
        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:70)
        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55)
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
        ... 5 more
      Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext
        at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.6.0_45]
        at java.lang.Class.privateGetDeclaredFields(Class.java:2300) [rt.jar:1.6.0_45]
        at java.lang.Class.getDeclaredFields(Class.java:1745) [rt.jar:1.6.0_45]
        at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
        ... 10 more
      Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContext from [Module "org.apache.cxf:main" from local module loader @5e2b323e (roots: F:\Desenvolvimento\Programas\jboss-as-7.1.1.Final_Clean\jboss-as-7.1.1.Final\modules)]
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
        ... 15 more
      
      
      14:24:14,871 INFO  [org.jboss.as] (MSC service thread 1-4) JBAS015951: Admin console listening on http://127.0.0.1:9990
      14:24:14,873 ERROR [org.jboss.as] (MSC service thread 1-4) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 5959ms - Started 140 of 218 services (1 services failed or missing dependencies, 76 services are passive or on-demand)
      14:24:14,873 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "Test.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"Test.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Test.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"Test.war\""}}
      14:24:15,243 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment Test.war in 368ms
      14:24:15,247 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."Test.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."Test.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "Test.war"
      
      
      14:24:15,254 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"Test.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Test.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"Test.war\""}}}}
      
      
      


      Our pom

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>br.com.gid.ws</groupId>
        <artifactId>Test</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <packaging>war</packaging>
        <name>br.com.gid.ws</name>
      
      
        <properties>
      
      
        <project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
        <org.springframework.version>3.0.7.RELEASE</org.springframework.version>
        <org.apache.cxf.version>2.7.8</org.apache.cxf.version>
      
      
        </properties>
      
      
        <dependencies>
      
      
      
      
        <!--
        ################################################
        #################### SPRING ####################
        ################################################ 
        -->
      
      
        <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>${org.springframework.version}</version>
        </dependency>
      
      
        <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-web</artifactId>
        <version>${org.springframework.version}</version>
        </dependency>
      
      
        <dependency>
        <groupId>org.springframework.ldap</groupId>
        <artifactId>spring-ldap-core</artifactId>
        <version>1.3.2.RELEASE</version>
        </dependency>
      
      
        <dependency>
        <groupId>br.com.caelum.stella</groupId>
        <artifactId>caelum-stella-core</artifactId>
        <version>1.2</version>
        </dependency>
      
      
        <dependency>
        <groupId>org.bouncycastle</groupId>
        <artifactId>bcprov-jdk15</artifactId>
        <version>1.46</version>
        </dependency>
      
      
        <dependency>
        <groupId>com.thoughtworks.xstream</groupId>
        <artifactId>xstream</artifactId>
        <version>1.4.5</version>
        </dependency>
      
      
        <dependency>
        <groupId>net.vidageek</groupId>
        <artifactId>mirror</artifactId>
        <version>1.6.1</version>
        </dependency>
      
      
        <!--
        ################################################
        ##################### CXF ######################
        ################################################  
        -->
      
      
        <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-frontend-jaxws</artifactId>
        <version>${org.apache.cxf.version}</version>
        </dependency>
      
      
        <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-transports-http</artifactId>
        <version>${org.apache.cxf.version}</version>
        </dependency>
      
      
        <!-- Jetty is needed if you're using the CXFServlet -->
      
      
        <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-transports-http-jetty</artifactId>
        <version>${org.apache.cxf.version}</version>
        </dependency>
      
      
        <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-ws-rm</artifactId>
        <version>${org.apache.cxf.version}</version>
        </dependency>
        <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-ws-security</artifactId>
        <version>${org.apache.cxf.version}</version>
        </dependency>
      
      
        <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-ws-addr</artifactId>
        <version>${org.apache.cxf.version}</version>
        </dependency>
      
      
        <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-ws-policy</artifactId>
        <version>${org.apache.cxf.version}</version>
        </dependency>
      
      
        <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-webapp</artifactId>
        <version>8.1.14.v20131031</version>
        </dependency>
      
      
        <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.17</version>
        </dependency>
      
      
      
      
        </dependencies>
      
      
        <build>
        <plugins>
        <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.1</version>
        <configuration>
        <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
        </configuration>
        </plugin>
        </plugins>
      
      
        <finalName>Test</finalName>
      
      
        </build>
      
      
      </project>
      
        • 1. Re: How to exclude CXF jars that JBOSS 7.1.1 loads by default?
          Alessio Soldano Master

          The only verified approach I can suggest implies moving at least to JBoss AS 7.1.2.Final and as you probably figured out relies on excluding the webservices subsystem.

          We have a testcase in the jbossws-testsuite (org.jboss.test.ws.jaxws.cxf.noIntegration.EmbeddedCXFTestCase [1]), you can check the resources used in the test deployment at [2].

           

          For anybody else reading this, be sure to read the first two sections of Apache CXF integration - JBoss Web Services - Project Documentation Editor to understand what disabling the webservices subsystem and using JBoss AS / WildFly as a servlet container only really means.

           

          [1] http://anonsvn.jboss.org/repos/jbossws/stack/cxf/tags/jbossws-cxf-4.2.3.Final/modules/testsuite/cxf-tests/src/test/java/…

          [2] jbossws - Revision 18174: /stack/cxf/tags/jbossws-cxf-4.2.3.Final/modules/testsuite/cxf-tests/src/test/resources/jaxws/c…

          • 3. Re: How to exclude CXF jars that JBOSS 7.1.1 loads by default?
            yvan khekhone Newbie

            hi alesssio

            i have the same problem  i follow your link and copy paste deployement structure

            but is not working

            JboSS 7

             

            <code>

            <?xml version="1.0"?>
            <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
             <deployment>
               <exclude-subsystems>
                  <subsystem name="resteasy" />
                  <subsystem name="jaxrs" />
                  <subsystem name="webservices" />
                </exclude-subsystems>
              <dependencies>
                        <module name="org.apache.cxf"/>
                        <module name="org.apache.cxf.impl"/>
                        <module name="javax.wsdl4j.api"/>
                        <module name="org.apache.ws.xmlschema"/>
                        <module name="org.apache.neethi"/>
                        <module name="org.codehaus.woodstox"/>
                    </dependencies>
               </deployment>
            
            
             <sub-deployment name="bs-contentieuxWebApplication-${project.version}.war">
               <exclude-subsystems>
                   <subsystem name="jaxrs" />
                    <subsystem name="org.apache.cxf" />
                     <subsystem name="webservices" />
               </exclude-subsystems>
            <!--    <exclusions> -->
            <!--      <module name="org.apache.cxf"/> -->
            <!--    </exclusions> -->
               <dependencies>
               
              <module name="org.apache.cxf"/>
                        <module name="org.apache.cxf.impl"/>
                        <module name="javax.wsdl4j.api"/>
                        <module name="org.apache.ws.xmlschema"/>
                        <module name="org.apache.neethi"/>
                        <module name="org.codehaus.woodstox"/>
                <module name="javaee.api"/>
                    <module name="javaee.api">
                      <imports>
                        <exclude-set>
                          <path name="javax/ws/rs"/>
                          <path name="javax/ws/rs/core"/>
                          <path name="javax/ws/rs/ext"/>
                        </exclude-set>
                      </imports>
                    </module>
                     <module name="asm.asm" />
               </dependencies>
              
             </sub-deployment>
            </jboss-deployment-structure>
            

            </code>

             

            my stack error is

            13:39:48,729 WARN  [org.jboss.modules] (MSC service thread 1-8) Failed to define class org.apache.cxf.transport.servlet.CXFServlet in Module "org.apache.cxf.impl:main" from local module loader @560fc912 (finder: local module finder @2659e8e2 (roots: E:\BredForge46\servers\jboss-eap-6.4\modules,E:\BredForge46\servers\jboss-eap-6.4\modules\system\layers\base)): java.lang.LinkageError: Failed to link org/apache/cxf/transport/servlet/CXFServlet (Module "org.apache.cxf.impl:main" from local module loader @560fc912 (finder: local module finder @2659e8e2 (roots: E:\BredForge46\servers\jboss-eap-6.4\modules,E:\BredForge46\servers\jboss-eap-6.4\modules\system\layers\base)))
              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:487) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_80]
              at java.lang.Class.forName(Class.java:278) [rt.jar:1.7.0_80]
              at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54)
              at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:85) [jboss-as-ee-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
              at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77) [jboss-as-ee-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159)
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980)
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_80]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_80]
              at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]
            Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationListener
              at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_80]
              at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_80]
              at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.6.Final-redhat-1]
              ... 19 more
            Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationListener from [Module "org.apache.cxf.impl:main" from local module loader @560fc912 (finder: local module finder @2659e8e2 (roots: E:\BredForge46\servers\jboss-eap-6.4\modules,E:\BredForge46\servers\jboss-eap-6.4\modules\system\layers\base))]
              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.6.Final-redhat-1]
              ... 23 more
            
            
            13:39:48,755 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.subunit."bs-contentieuxEAR.ear"."bs-contentieuxWebApplication-4.0-SNAPSHOT.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."bs-contentieuxEAR.ear"."bs-contentieuxWebApplication-4.0-SNAPSHOT.war".POST_MODULE: JBAS018733: N'a pas pu traiter la phase POST_MODULE de subdeployment "bs-contentieuxWebApplication-4.0-SNAPSHOT.war" of deployment "bs-contentieuxEAR.ear"
              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_80]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_80]
              at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]
            Caused by: java.lang.LinkageError: Failed to link org/apache/cxf/transport/servlet/CXFServlet (Module "org.apache.cxf.impl:main" from local module loader @560fc912 (finder: local module finder @2659e8e2 (roots: E:\BredForge46\servers\jboss-eap-6.4\modules,E:\BredForge46\servers\jboss-eap-6.4\modules\system\layers\base)))
              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:487) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_80]
              at java.lang.Class.forName(Class.java:278) [rt.jar:1.7.0_80]
              at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54) [jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
              at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:85)
              at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)
              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
              ... 5 more
            Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationListener
              at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_80]
              at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_80]
              at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.6.Final-redhat-1]
              ... 19 more
            Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationListener from [Module "org.apache.cxf.impl:main" from local module loader @560fc912 (finder: local module finder @2659e8e2 (roots: E:\BredForge46\servers\jboss-eap-6.4\modules,E:\BredForge46\servers\jboss-eap-6.4\modules\system\layers\base))]
              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.6.Final-redhat-1]
              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.6.Final-redhat-1]
              ... 23 more
            
            
            13:39:48,771 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) JBAS014612: L'opération ("deploy") a échoué - adresse : ([("deployment" => "bs-contentieuxEAR.ear")]) - description de l'échec : {"JBAS014671: Les services ont échoué" => {"jboss.deployment.subunit.\"bs-contentieuxEAR.ear\".\"bs-contentieuxWebApplication-4.0-SNAPSHOT.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"bs-contentieuxEAR.ear\".\"bs-contentieuxWebApplication-4.0-SNAPSHOT.war\".POST_MODULE: JBAS018733: N'a pas pu traiter la phase POST_MODULE de subdeployment \"bs-contentieuxWebApplication-4.0-SNAPSHOT.war\" of deployment \"bs-contentieuxEAR.ear\"
                Caused by: java.lang.LinkageError: Failed to link org/apache/cxf/transport/servlet/CXFServlet (Module \"org.apache.cxf.impl:main\" from local module loader @560fc912 (finder: local module finder @2659e8e2 (roots: E:\\BredForge46\\servers\\jboss-eap-6.4\\modules,E:\\BredForge46\\servers\\jboss-eap-6.4\\modules\\system\\layers\\base)))
                Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationListener
                Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationListener from [Module \"org.apache.cxf.impl:main\" from local module loader @560fc912 (finder: local module finder @2659e8e2 (roots: E:\\BredForge46\\servers\\jboss-eap-6.4\\modules,E:\\BredForge46\\servers\\jboss-eap-6.4\\modules\\system\\layers\\base))]"}}
            13:39:48,772 ERROR [org.jboss.as.server] (management-handler-thread - 1) JBAS015870: Le déploiement "bs-contentieuxEAR.ear" a été annulé avec le message d'échec 
            {"JBAS014671: Les services ont échoué" => {"jboss.deployment.subunit.\"bs-contentieuxEAR.ear\".\"bs-contentieuxWebApplication-4.0-SNAPSHOT.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"bs-contentieuxEAR.ear\".\"bs-contentieuxWebApplication-4.0-SNAPSHOT.war\".POST_MODULE: JBAS018733: N'a pas pu traiter la phase POST_MODULE de subdeployment \"bs-contentieuxWebApplication-4.0-SNAPSHOT.war\" of deployment \"bs-contentieuxEAR.ear\"
                Caused by: java.lang.LinkageError: Failed to link org/apache/cxf/transport/servlet/CXFServlet (Module \"org.apache.cxf.impl:main\" from local module loader @560fc912 (finder: local module finder @2659e8e2 (roots: E:\\BredForge46\\servers\\jboss-eap-6.4\\modules,E:\\BredForge46\\servers\\jboss-eap-6.4\\modules\\system\\layers\\base)))
                Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationListener
                Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationListener from [Module \"org.apache.cxf.impl:main\" from local module loader @560fc912 (finder: local module finder @2659e8e2 (roots: E:\\BredForge46\\servers\\jboss-eap-6.4\\modules,E:\\BredForge46\\servers\\jboss-eap-6.4\\modules\\system\\layers\\base))]"}}
            13:39:48,871 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015974: Sous-déploiement arrêté (runtime-name: bs-contentieuxWebApplication-4.0-SNAPSHOT.war) en 98ms
            13:39:48,876 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Arrêt du déploiement de bs-contentieuxEAR.ear (runtime-name: "bs-contentieuxEAR.ear") en 102ms
            13:39:48,877 INFO  [org.jboss.as.controller] (management-handler-thread - 1) JBAS014774: Rapport de statut de service
            JBAS014776: Services nouvellement modifiés : 
            service jboss.deployment.subunit."bs-contentieuxEAR.ear"."bs-contentieuxWebApplication-4.0-SNAPSHOT.war".component."com.sun.faces.config.ConfigureListener".START (plus requis actuellement) 
            service jboss.deployment.subunit."bs-contentieuxEAR.ear"."bs-contentieuxWebApplication-4.0-SNAPSHOT.war".component."fr.bred.gdi.bscontentieux.ws.VersionServlet".START (plus requis actuellement) 
            service jboss.deployment.subunit."bs-contentieuxEAR.ear"."bs-contentieuxWebApplication-4.0-SNAPSHOT.war".component."javax.faces.webapp.FacetTag".START (plus requis actuellement) 
            service jboss.deployment.subunit."bs-contentieuxEAR.ear"."bs-contentieuxWebApplication-4.0-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (plus requis actuellement) 
            service jboss.deployment.subunit."bs-contentieuxEAR.ear"."bs-contentieuxWebApplication-4.0-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (plus requis actuellement) 
            service jboss.deployment.subunit."bs-contentieuxEAR.ear"."bs-contentieuxWebApplication-4.0-SNAPSHOT.war".component."org.apache.catalina.servlets.DefaultServlet".START (plus requis actuellement) 
            service jboss.deployment.subunit."bs-contentieuxEAR.ear"."bs-contentieuxWebApplication-4.0-SNAPSHOT.war".component."org.apache.cxf.transport.servlet.CXFServlet".START (plus requis actuellement) 
            service jboss.deployment.subunit."bs-contentieuxEAR.ear"."bs-contentieuxWebApplication-4.0-SNAPSHOT.war".component."org.apache.jasper.servlet.JspServlet".START (plus requis actuellement) 
            service jboss.deployment.subunit."bs-contentieuxEAR.ear"."bs-contentieuxWebApplication-4.0-SNAPSHOT.war".component."org.springframework.web.context.ContextLoaderListener".START (plus requis actuellement) 
            service jboss.deployment.subunit."bs-contentieuxEAR.ear"."bs-contentieuxWebApplication-4.0-SNAPSHOT.war".deploymentCompleteService (plus requis actuellement) 
            service jboss.web.deployment.default-host./WsContentieux (plus requis actuellement) 
            service jboss.web.deployment.default-host./WsContentieux.realm (plus requis actuellement) 
            JBAS014777: Services qui n'ont pas pu démarrer :      service jboss.deployment.subunit."bs-contentieuxEAR.ear"."bs-contentieuxWebApplication-4.0-SNAPSHOT.war".POST_MODULE