[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

JAAS authentication on JBoss giving HTTP Status 408 error on logging in

Posted on 2008-02-07
3
Medium Priority
?
5,007 Views
Last Modified: 2013-12-02
I am working on adding JAAS authentication for our enterprise web application which is deployed on JBoss 4.2.2. We are using our own custom LoginModule and custom principal. Have made the code changes required, but the problem is after logging in, it shows

HTTP Status 408 - The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser

--------------------------------------------------------------------------------

type Status report

message The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser

description The client did not produce a request within the time that the server was prepared to wait (The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser).

The JAAS authentication is working fine and login is success after that only the above error is shown. Googled a lot and found that this issue is reported by many people, but one solution I was able to find was that to change the privacy setting for IE to accept cookies. But this also didn't work for me. Pls help

Thx. in advance
Gibu
0
Comment
Question by:Gibu George
3 Comments
 
LVL 10

Expert Comment

by:Nellios
ID: 20840467
You could perform the following test in order to check if it is a browser / client configuration issue or a JAAS misconfiguration.

1) Change the Authentication type in your deployment descriptor from basic to form based.
2) Implement and use login form in jsp
3) If it is working that way then it is definitly a client issue (Try switch browsers or settings).

A login form and the chanes in web.xml are listed here:

web.xml modification:
    <login-config>
        <auth-method>FORM</auth-method>
        <realm-name>JAAS_REALM_NAME</realm-name>
        <form-login-config>
            <form-login-page>/login.jsp</form-login-page>
            <form-error-page>/loginerror.jsp</form-error-page>
        </form-login-config>
    </login-config>
 
login.jsp:
 
    <form method="POST" action="j_security_check">
        <table>
        <tr><td>User name:</td><td><input type="text" name="j_username" /></td></tr>
        <tr><td>Password:</td><td><input type="password" name="j_password" /></td></tr>
        <tr><td><input type="submit" value="Login" /></td></tr>
        </table>
    </form>

Open in new window

0
 
LVL 12

Accepted Solution

by:
Gibu George earned 0 total points
ID: 20847936
I found the actual issue, we were accessing the JBoss application through Apache Http Server, this was causing the issue. When we access it directly application allows to login. Thx. for the response. Also we are using FORM based authentication only
0
 

Expert Comment

by:sbhati6
ID: 37642126
This is not the solution that I was looking for
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Suggested Courses

613 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question