title: CXF 2.x and Jboss AS 7.1.1
body: <p>I'm having a hard time implementing a REST web service using Apache CXF 2.x. I have a strict requirement to use JBoss AS 7.1.1 Final, which comes equipped with CXF 2.4.6. I have installed   JBossWS 4.1.1: Apache CXF integration stack which upgrades the CXF version to 2.6.4. I'm using Eclipse Kepler SR1 in which I had to install "JBossAS Tools" so I could set JBoss AS 7.1.1 as my project runtime. The following are the different classes I'm using as well as my web.xml:</p>
  
  <p><strong>Web.xml</strong> </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"&gt;
    &lt;display-name&gt;CXF&lt;/display-name&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;RESTServlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet&lt;/servlet-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;jaxrs.serviceClasses&lt;/param-name&gt;
              &lt;param-value&gt;
                  webservice.StudentServiceImpl
              &lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;StudentServiceImpl&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      &lt;session-config&gt;
          &lt;session-timeout&gt;60&lt;/session-timeout&gt;
      &lt;/session-config&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p><strong>Student.java</strong></p>
  
  <pre><code>package pojo;
  
  import javax.xml.bind.annotation.XmlRootElement;
  
  @XmlRootElement(name = "student")
  public class Student {
  
      private String name;
      private String lName;
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      public String getlName() {
          return lName;
      }
  
      public void setlName(String lName) {
          this.lName = lName;
      }
  
  }
  </code></pre>
  
  <p><strong>StudentService</strong></p>
  
  <pre><code>package webservice;
  
  import pojo.Student;
  
  public interface StudentService {
  
  public Student getStudent(String firstName,String lastName);
  }
  </code></pre>
  
  <p><strong>StudentServiceImpl.java</strong></p>
  
  <pre><code>package webservice;
  
  import javax.ws.rs.POST;
  import javax.ws.rs.Path;
  import javax.ws.rs.PathParam;
  import javax.ws.rs.Produces;
  import javax.ws.rs.core.MediaType;
  
  import pojo.Student;
  
  @Path("StudentService")
  @Produces(MediaType.APPLICATION_JSON)
  
  public class StudentServiceImpl implements StudentService{
  
      @POST
      @Path("/student/{firstName}/{lastName}")
      public Student getStudent(@PathParam("firstName") String firstName,@PathParam("lastName") String lastName) {
  
       Student student = new Student();
       student.setName(firstName);
       student.setlName(lastName);
  
       return student;
  
      }
  
  }
  </code></pre>
  
  <p>What I'm trying to achieve is having a REST webservice that returns a complex object (Student in this case) as a JSON String. Keep in mind that I've configured the CXF endpoint in Eclipse with a CXFServlet rather than Spring. Another note is that I'm using Apache CXF 2.7.6 as my CXF runtime since I couldn't find a valid link to download CXF 2.6.4. My context root is called "CXF" but when I browse to the URL <code>http://localhost:8080/CXF/</code>, I get error HTTP error 404.
  What am I doing wrong?</p>
  
  <p><strong>UPDATE:</strong>
  I just noticed that upon deployment, the following exception is being thrown:</p>
  
  <pre><code>17:51:26,489 WARN  [org.jboss.modules] (MSC service thread 1-1) Failed to define class org.apache.cxf.wsn.jms.JmsPublisher in Module "deployment.CXF.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/apache/cxf/wsn/jms/JmsPublisher (Module "deployment.CXF.war:main" from Service Module Loader)
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396)
      at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)
      at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)
      at org.jboss.modules.Module.loadModuleClass(Module.java:517)
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
      at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_45]
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_45]
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_45]
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_45]
      at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)
      at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)
      at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)
      at org.jboss.modules.Module.loadModuleClass(Module.java:517)
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
      at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_45]
      at java.lang.Class.forName(Class.java:249) [rt.jar:1.6.0_45]
      at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54)
      at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:63) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
      at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
      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.NoClassDefFoundError: org/apache/activemq/advisory/ConsumerListener
      at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_45]
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_45]
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_45]
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_45]
      at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)
      ... 35 more
  Caused by: java.lang.ClassNotFoundException: org.apache.activemq.advisory.ConsumerListener from [Module "deployment.CXF.war:main" from Service Module Loader]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
      ... 41 more
  
  17:51:26,563 WARN  [org.jboss.modules] (MSC service thread 1-1) Failed to define class org.apache.cxf.wsn.services.JaxwsPublisher in Module "deployment.CXF.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/apache/cxf/wsn/services/JaxwsPublisher (Module "deployment.CXF.war:main" from Service Module Loader)
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396)
      at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)
      at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)
      at org.jboss.modules.Module.loadModuleClass(Module.java:517)
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
      at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_45]
      at java.lang.Class.forName(Class.java:249) [rt.jar:1.6.0_45]
      at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54)
      at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:63) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
      at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
      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.NoClassDefFoundError: org/apache/cxf/wsn/jms/JmsPublisher
      at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_45]
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_45]
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_45]
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_45]
      at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)
      ... 20 more
  Caused by: java.lang.ClassNotFoundException: org.apache.cxf.wsn.jms.JmsPublisher from [Module "deployment.CXF.war:main" from Service Module Loader]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
      ... 26 more
  
  17:51:26,690 WARN  [org.jboss.modules] (MSC service thread 1-1) Failed to define class org.apache.cxf.wsn.jms.JmsPublisher in Module "deployment.CXF.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/apache/cxf/wsn/jms/JmsPublisher (Module "deployment.CXF.war:main" from Service Module Loader)
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [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]
      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.&lt;init&gt;(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]
      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]
      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.NoClassDefFoundError: org/apache/activemq/advisory/ConsumerListener
      at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_45]
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_45]
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_45]
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_45]
      at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]
      ... 24 more
  Caused by: java.lang.ClassNotFoundException: org.apache.activemq.advisory.ConsumerListener from [Module "deployment.CXF.war:main" from Service Module Loader]
      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.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]
      ... 30 more
  
  17:51:26,757 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."CXF.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."CXF.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "CXF.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.wsn.services.JaxwsNotificationBroker with ClassLoader ModuleClassLoader for Module "deployment.CXF.war:main" from Service Module Loader
      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/apache/cxf/wsn/jms/JmsPublisher
      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.&lt;init&gt;(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.apache.cxf.wsn.jms.JmsPublisher from [Module "deployment.CXF.war:main" from Service Module Loader]
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
      ... 15 more
  
  17:51:26,811 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "CXF.war" was rolled back with failure message {"JBAS014671: Failed services" =&gt; {"jboss.deployment.unit.\"CXF.war\".POST_MODULE" =&gt; "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"CXF.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"CXF.war\""}}
  17:51:27,096 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-10) JBAS015877: Stopped deployment CXF.war in 285ms
  17:51:27,100 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
  JBAS014777:   Services which failed to start:      service jboss.deployment.unit."CXF.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."CXF.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "CXF.war"
  
  17:51:27,107 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" =&gt; {"Operation step-2" =&gt; {"JBAS014671: Failed services" =&gt; {"jboss.deployment.unit.\"CXF.war\".POST_MODULE" =&gt; "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"CXF.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"CXF.war\""}}}}
  </code></pre>