Jboss deploying in root context

java, jboss, maven, spring

Solution

The file in question is standalone.xml and is located in the following directory:

%JBOSS_HOME%/configuration/standalone.xml

You need to add `enable-welcome-root=false` in your virtual server definition in your standalone:

<virtual-server name="localhost" enable-welcome-root="false">

And create a jboss-web.xml file with the following:

<?xml version="1.0" encoding="UTF-8"?>

<jboss-web>
    <context-root>/</context-root>
</jboss-web>

Problem

Yes, i know about `enable-welcome-root=false`, but cant find this in files. Use wildfly final or jboss eap 6.2. Where it is? And why i need to add jboss-web.xml in WEB-INF?

Original source