I want to change context root from \"/war_name\" (by default) to \"/\".
Thus, I created a jboss-web.xml file that I pushed in WEB-INF directory.
Content of this
It looks like there is another app that's running at the root context "/".
You may have to delete the other app or move it to a different context before you can assign your app to the root context.
If the conflicting app is JBoss AppServer root itself, you can disable that using the following (enable-welcome-root="false")
<subsystem xmlns="urn:jboss:domain:web:1.0">
<connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http"/>
<virtual-server name="localhost" enable-welcome-root="false">
<alias name="example.com"/>
</virtual-server>
</subsystem>