title: How to deploy war file in root(/) context to Wildfly ver 9.0.1
body: <p><a href="https://i.stack.imgur.com/Mxq1S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mxq1S.png" alt="servicelog" /></a>I am newbie for Wildfly till now I was working on tomcat to deploy my applications. Now just for add on features of Wildfly we want to move on to this.
  I am using Windows Os, I have done with the basic implementation of wildfly to start service etc. but Unable to deploy the ROOT.war in place of Welcome page. I have studied and gone through lot of links, I added jboss-web.xml in my project WEB-INF folder with following settings as I got in links.
  But I am still unable to deploy the ROOT.war in standalone deployment. Each times it goes to failed. Not getting what I have done Wrong.</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;jboss-web xmlns=&quot;http://www.jboss.com/xml/ns/javaee&quot;
          xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
          xsi:schemaLocation=&quot;
          http://www.jboss.com/xml/ns/javaee
          http://www.jboss.org/j2ee/schema/jboss-web_5_1.xsd&quot;&gt;
      &lt;context-root&gt;/&lt;/context-root&gt;
  &lt;/jboss-web&gt;`
  </code></pre>
  <p>I have made the admin user, But for deploying I am using wildfly user setting only. For it also I uncommented the fields from bin/init.d wildfly.conf fly.
  But totally unaware of the error.</p>
  <p><strong>Note:</strong> We also tried it on linux machine but ROOT.war is not getting deployed there too.<a href="http://www.mastertheboss.com/jboss-web/jbosswebserver/how-to-deploy-a-web-application-on-the-root-context-on-jboss-as-7" rel="nofollow noreferrer">used</a></p>