title: How to deploy mule app on JBOSS server
body: <p>Facing issue while deploying mule application on jboss 7.1.1As.
  I am using jboss 7.1.1as. I create dynamic project in eclipse. copy mule configuration file in WEB-INF/classes folder. and import all mule jars in lib folder
  Following is my configuration file</p>
  
  <pre><code> &lt;flow name="testsampleFlow" doc:name="testsampleFlow"&gt;
          &lt;servlet:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="Servlet"/&gt;
          &lt;logger level="INFO" doc:name="Logger"/&gt;
          &lt;set-payload value="#['Hello' + message.payload.substring(1)]" doc:name="Set Payload"/&gt;
      &lt;/flow&gt;
  </code></pre>
  
  <p>Following is my web.xml file</p>
  
  <pre><code>&lt;context-param&gt;
          &lt;param-name&gt;org.mule.config&lt;/param-name&gt;
          &lt;param-value&gt;testsample.xml&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;listener&gt;
          &lt;listener-class&gt;org.mule.config.builders.MuleXmlBuilderContextListener&lt;/listener-class&gt;
      &lt;/listener&gt;
  &lt;servlet&gt;
          &lt;servlet-name&gt;MuleTest&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.mule.transport.servlet.MuleReceiverServlet&lt;/servlet-class&gt;
          &lt;load-on-startup /&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;MuleTest&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/mule/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>I export my application as war file.and deploy to jboss server then got following error</p>
  
  <pre><code>16:28:12,086 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "MuleTest.war"
  16:28:12,146 WARN  [org.jboss.as.ee] (MSC service thread 1-4) JBAS011006: Not installing optional component org.mule.transport.servlet.MuleReceiverServlet due to exception: java.lang.ClassNotFoundException: org.mule.transport.servlet.MuleReceiverServlet from [Module "deployment.MuleTest.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.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.forName0(Native Method) [rt.jar:1.7.0_65]
      at java.lang.Class.forName(Class.java:274) [rt.jar:1.7.0_65]
      at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
      at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:79)
      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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
  
  16:28:12,161 WARN  [org.jboss.as.ee] (MSC service thread 1-4) JBAS011006: Not installing optional component org.mule.config.builders.MuleXmlBuilderContextListener due to exception: java.lang.ClassNotFoundException: org.mule.config.builders.MuleXmlBuilderContextListener from [Module "deployment.MuleTest.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.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.forName0(Native Method) [rt.jar:1.7.0_65]
      at java.lang.Class.forName(Class.java:274) [rt.jar:1.7.0_65]
      at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
      at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:79)
      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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
  </code></pre>
  
  <p><strong>NOTE</strong> I already import jar file  org.mule.config.builders.MuleXmlBuilderContextListener</p>
  
  <p>How to solve this?</p>
  
  <p>Thanks</p>