title: Form-Based weblogic Authentication login Issue
body: <p>I am following this <a href="http://middlewaremagic.com/weblogic/?p=2034" rel="nofollow noreferrer">tutorial</a> to create a form-based authentication. However when I try to login it fails and remains on the login screen. I've also looked at this <a href="https://docs.oracle.com/cd/E19226-01/820-7627/bncby/index.html" rel="nofollow noreferrer">tutorial</a> and tried its web.xml but I can't seem to find what is wrong. </p>
  
  <p>Also it does not seem to go to my login-failed.jsp when I enter the wrong username and password.</p>
  
  <p>In addition on my weblogic server security realm there is a group called weblogic_admin I created a user with password and linked it to weblogic_admin. </p>
  
  <p>Any pointers would be great!</p>
  
  <p><strong>logon.jsp</strong></p>
  
  <pre><code>&lt;s:form method="post" action="j_security_check"&gt;
      &lt;tr align="center"&gt;
        &lt;td align="right"&gt;&lt;b&gt;User ID / ID-utilisateur:&lt;/b&gt;&lt;/td&gt;
        &lt;td align="left"&gt;&lt;input type="text" name="j_username" maxlength="8"/&gt;&lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr align="center" &gt;
        &lt;td align="right"&gt;&lt;b&gt;Password / Mot de passe:&lt;/b&gt;&lt;/td&gt;
        &lt;td align="left"&gt;&lt;input type="password" name="j_password"/&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;div&gt;
      &lt;s:submit value="Logon"/&gt;
    &lt;/div&gt;
  &lt;/s:form&gt;
  </code></pre>
  
  <p><strong>web.xml</strong></p>
  
  <pre><code> &lt;security-constraint&gt;
      &lt;web-resource-collection&gt;
          &lt;web-resource-name&gt;ADMIN access&lt;/web-resource-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
          &lt;http-method&gt;GET&lt;/http-method&gt;
          &lt;http-method&gt;POST&lt;/http-method&gt;
      &lt;/web-resource-collection&gt;
      &lt;auth-constraint&gt;
          &lt;role-name&gt;admin&lt;/role-name&gt;
      &lt;/auth-constraint&gt;
  &lt;/security-constraint&gt;
  
  
   &lt;login-config&gt;
      &lt;auth-method&gt;FORM&lt;/auth-method&gt;
      &lt;realm-name&gt;realm&lt;/realm-name&gt;
      &lt;form-login-config&gt;
          &lt;form-login-page&gt;/logon.jsp&lt;/form-login-page&gt;
          &lt;form-error-page&gt;/login-failed.jsp&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;welcome-file-list&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  </code></pre>
  
  <p><strong>WebLogic.xml</strong></p>
  
  <pre><code>&lt;security-role-assignment&gt;
      &lt;role-name&gt;admin&lt;/role-name&gt;
      &lt;principal-name&gt;weblogic_admin&lt;/principal-name&gt;
  &lt;/security-role-assignment&gt;
  </code></pre>