If the web container isn't Tomcat, you may have to follow the container's own configuration standard, or modify META-INF/application.xml in a EAR, or use WEB-INF/jboss-web.xml in a WAR.
<context-root>/</context-root>
<context-root>/</context-root>