title: Removing embedded tomcat server from war file when deploying to JBOSS [Spring-Boot]
body: <p>I am using intellij and instead of manually removing the tomcat jar's from the war file what is a better way to remove them during compilation.</p>
  
  <p>I need this done because I am getting the following error:</p>
  
  <pre><code>failure description: {"WFLYCTL0080: Failed services" =&gt;    
  {"jboss.undertow.deployment.default-server.default-host.\"/request-ws-
  0.0.1-SNAPSHOT\"" =&gt; "org.jboss.msc.service.StartException in service 
  jboss.undertow.deployment.default-server.default-host.\"/request-ws-
  0.0.1-SNAPSHOT\": java.lang.RuntimeException: 
  java.lang.ClassCastException: 
  org.apache.tomcat.websocket.server.WsServerContainer cannot be cast to 
  io.undertow.websockets.jsr.ServerWebSocketContainer
  </code></pre>
  
  <p>However when I remove the tomcat jar's everything is fine.</p>
  
  <p>I am using Gradle and I want to REMOVE tomcat when I run it using JBOSS. However when I run it using spring-boot I want/need it there.</p>