Enable form based login in Jboss EAP 6.3 <p>Following the <a href="https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.3/html/Security_Guide/Enable_Form-based_Authentication.html" rel="nofollow">official tutorial</a> form-based auth is achieved by simply adding this to web.xml:</p> <pre><code>&lt;login-config&gt; &lt;auth-method&gt;FORM&lt;/auth-method&gt; &lt;form-login-config&gt; &lt;form-login-page&gt;/loginform.html&lt;/form-login-page&gt; &lt;form-error-page&gt;/loginerror.html&lt;/form-error-page&gt; &lt;/form-login-config&gt; &lt;/login-config&gt; </code></pre> <p>I did that, but web.xml gets ignored when deploying.</p> <pre><code>[WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ig nored (webxml attribute is missing from war task, or ignoreWebxml attribute is specifi ed as 'true') </code></pre> <p>The loginForm.jsp is this:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt; &lt;title&gt;loginForm.jsp&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;h2&gt;Please login to add employees&lt;/h2&gt; &lt;form action="j_security_check" method=post&gt; &lt;p&gt;&lt;strong&gt;Username: &lt;/strong&gt; &lt;input type="text" name="j_username" size="25"&gt; &lt;p&gt;&lt;p&gt;&lt;strong&gt;Password: &lt;/strong&gt; &lt;input type="password" size="15" name="j_password"&gt; &lt;p&gt;&lt;p&gt; &lt;input type="submit" value="Submit"&gt; &lt;input type="reset" value="Reset"&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Full web.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"&gt; &lt;display-name&gt;form_auth&lt;/display-name&gt; &lt;login-config&gt; &lt;auth-method&gt;FORM&lt;/auth-method&gt; &lt;form-login-config&gt; &lt;form-login-page&gt;/loginform.html&lt;/form-login-page&gt; &lt;form-error-page&gt;/loginerror.html&lt;/form-error-page&gt; &lt;/form-login-config&gt; &lt;/login-config&gt; &lt;security-role&gt; &lt;role-name&gt;admin&lt;/role-name&gt; &lt;/security-role&gt; &lt;/web-app&gt; </code></pre> <p>How do I achieve form-based auth?</p>