title: Conflict with Spring Framework and and Apache CXF dependencies - 'No Such Method'
body: <p>I am trying to integrate some functionality into my software that requires Apache CXF Bundle (2.7.18) for making SOAP calls to a certain set of web services.  </p>
  
  <p>My pom.xml file looks like: </p>
  
  <pre><code>&lt;dependency&gt;
      &lt;--This is the new dependency I am integrating into my software--&gt;
      &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
      &lt;artifactId&gt;cxf-bundle&lt;/artifactId&gt;
      &lt;version&gt;2.7.18&lt;/version&gt;
  &lt;/dependency&gt;
  
  //other dependencies
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework&lt;/groupId&gt;
      &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
      &lt;version&gt;4.3.3.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>The project builds fine with Maven, but when I try loading the .WAR file into Wildfly, I receive the following stack trace: </p>
  
  <pre><code>Context initialization failed: java.lang.NoSuchMethodError: org.springframework.expression.spel.SpelParserConfiguration.&lt;init&gt;(Lorg/springframework/expression/spel/SpelCompilerMode;Ljava/lang/ClassLoader;)V
  at org.springframework.context.expression.StandardBeanExpressionResolver.&lt;init&gt;(StandardBeanExpressionResolver.java:98)
  at org.springframework.context.support.AbstractApplicationContext.prepareBeanFactory(AbstractApplicationContext.java:557)
  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:455)
  at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
  at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
  at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
  at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
  at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:195)
  at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
  at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  at java.lang.Thread.run(Thread.java:745)
  at org.jboss.threads.JBossThread.run(JBossThread.java:320)
  
  2017-03-20 14:27:45,076 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 340) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./p6pmtjsonresponse: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./p6pmtjsonresponse: java.lang.NoSuchMethodError: org.springframework.expression.spel.SpelParserConfiguration.&lt;init&gt;(Lorg/springframework/expression/spel/SpelCompilerMode;Ljava/lang/ClassLoader;)V
      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      at org.jboss.threads.JBossThread.run(JBossThread.java:320)
  Caused by: java.lang.NoSuchMethodError: org.springframework.expression.spel.SpelParserConfiguration.&lt;init&gt;(Lorg/springframework/expression/spel/SpelCompilerMode;Ljava/lang/ClassLoader;)V
      at org.springframework.context.expression.StandardBeanExpressionResolver.&lt;init&gt;(StandardBeanExpressionResolver.java:98)
      at org.springframework.context.support.AbstractApplicationContext.prepareBeanFactory(AbstractApplicationContext.java:557)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:455)
      at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
      at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
      at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:195)
      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
  </code></pre>
  
  <p>Any idea what might be causing this? I am wondering if I should be excluding some transitive dependency or something like that? I am open to using a different framework other than CXF if that is possible as well. </p>
  
  <p>I believe that the conflict is due to trying to use two frameworks which create conflicts. </p>
  
  <p>Thanks in advance!</p>