Deploy a WAR as root in WildFly

using maven / manual deploy

Save your war with the name ROOT.war and deploy it, WildFly will configure it as root application.

using configuration files

In your [MAVEN_ROOT]/webapp/WEB-INF create jboss-web.xml and add:


serve index.html

To serve your main page update web.xml:


Super fast WebApp built by Marco using SpringBoot 3 and Java 17 hosted by Infomaniak in Switzerland