title: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: Failed to start service
body: <p>This should be the very common problem that everyone will be facing while deployment. You will be failing if you deploy a web archive <code>(.war)</code> under <code>/</code> context.</p>
  
  <p>The error in JBoss console will be like this,</p>
  
  <blockquote>
    <p>Internal Server Error
        {
            "outcome" => "failed",
            "failure-description" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: Failed to start service
            Caused by: java.lang.IllegalArgumentException: JBWEB000250: Child container with name  already exists"}},
            "rolled-back" => true
        }</p>
  </blockquote>
  
  <p>The problem comes because of the following configuration in <code>standalone.xml</code></p>
  
  <pre><code>&lt;subsystem xmlns="urn:jboss:domain:web:2.2" default-virtual-server="default-host" native="false"&gt;
              &lt;connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/&gt;
              &lt;virtual-server name="default-host" enable-welcome-root="true"&gt;
                  &lt;alias name="localhost"/&gt;
                  &lt;alias name="example.com"/&gt;
              &lt;/virtual-server&gt;
  &lt;/subsystem&gt;
  </code></pre>