Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You will have to provide username and password combination that corresponds to a user who has already been created in the file realm of the GlassFish Server and has been assigned to the group of manager.</p> <p><a href="http://docs.oracle.com/cd/E19798-01/821-1841/bnbxs/index.html" rel="nofollow">Here</a> is a link on how to create a File realm.</p> <p><a href="http://blog.eisele.net/2011/01/jdbc-security-realm-and-form-based.html" rel="nofollow">Here</a> is a link on how to create a jdbc security realm.</p> <p><a href="http://docs.oracle.com/cd/E19798-01/821-1841/bncby/index.html" rel="nofollow">Here</a> is a working example. You can check if it matches with your code.</p> <p><a href="http://docs.oracle.com/javaee/5/tutorial/doc/bncbx.html#bncby" rel="nofollow">Here</a> is a link to better understand form-based authentication.</p> <p>Hope this helps. :)</p> <p><strong>EDIT</strong>:</p> <p>The idea behind form based authentication is that you write a JSP or Servlet that presents a form with the following fields and action:</p> <pre><code>&lt;form action="j_security_check" method="post"&gt; &lt;input type="text" name="j_username"/&gt; &lt;input type="password" name="j_password"/&gt; &lt;input type="submit"/&gt; &lt;/form&gt; </code></pre> <p>When the form is submitted, the servlet container checks the credentials for you using the mechanism you've defined (e.g. JAAS). In your web.xml, you set the following:</p> <pre><code>&lt;login-config&gt; &lt;form-login-check&gt; &lt;form-login-page&gt;/login.jsp&lt;/form-login-page&gt; &lt;form-error-page&gt;/error.jsp&lt;/form-error-page&gt; &lt;/form-login-check&gt; &lt;/login-config&gt; </code></pre> <p>This allows the container to locate the JSP or Servlet containing your form, or your error handling code.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload