title: Why i cant set my app into root context in jboss ?
body: <p>so this is my first time i ask question , </p>
  
  <p>i got a lil bit problem in my jboss configuration .</p>
  
  <p>im using <strong>jboss 6.2</strong> </p>
  
  <p><strong>already read this article</strong></p>
  
  <ol>
  <li>http[:]//www.mastertheboss.com/jboss-web/jbosswebserver/how-to-deploy-a-web-application-on-the-root-context-on-jboss-as-7</li>
  <li>https[:]//developer.jboss[dot]org/wiki/HowdoIoverridethewebcontextroot</li>
  <li>https[:]//stackoverflow[dot]com/questions/21957060/jboss-deploying-in-root-context</li>
  </ol>
  
  <p><strong>what i have done ?</strong> </p>
  
  <ol>
  <li>create jboss-web.xml </li>
  </ol>
  
  <blockquote>
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;  
  &lt;jboss-web&gt;  
      &lt;context-root&gt;/&lt;/context-root&gt;  
  &lt;/jboss-web&gt;
  </code></pre>
  </blockquote>
  
  <ol start="2">
  <li>set enable-welcome-content to false in my standalone/configuration/standalone.xml</li>
  </ol>
  
  <blockquote>
  <pre><code> &lt;virtual-server name="default-host" enable-welcome-root="false"&gt;
  </code></pre>
  </blockquote>
  
  <ol start="3">
  <li>change myapp.war to ROOT.war and deploy into standalone/deployments/</li>
  <li>set my welcome-file-list to login.xhtml  </li>
  </ol>
  
  <blockquote>
  <pre><code> &lt;welcome-file-list&gt;
  &lt;welcome-file&gt;login.xhtml&lt;/welcome-file&gt;
   &lt;/welcome-file-list&gt;
  </code></pre>
  </blockquote>
  
  <p>and here's the issue is </p>
  
  <p>when request root itself 
  192.168.1.98 
   <a href="http://i.stack.imgur.com/aCw4x.jpg" rel="nofollow">welcome-content</a></p>
  
  <p>and when i request 192.168.1.86/login.xhtml </p>
  
  <p><a href="http://i.stack.imgur.com/10whK.jpg" rel="nofollow">viola ! it works </a></p>
  
  <p>what i want is when i request just the ip address , it link to login.xhtml .
  right now , i have to request my ip + login.xhtml ( 192.168.1.86/login.xhtml ) </p>
  
  <p><strong><em>then what should i do ?</em></strong> </p>
  
  <p>need your help guys . </p>
  
  <p>any ideas are welcome .</p>
  
  <p>thanks .  </p>