user3260950 user3260950 - 2 months ago 14
Java Question

Jboss deploying in root context

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?

Answer

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>
Comments