I am adapting an existing web application based on Tomcat 5.5 to add user authentication using an LDAP server. I successfully modified the server.xml and web.xml files to authenticate users using basic authentication, however I want to create my own custom login page for users. I switched over to form authentication, using examples from this link: http://radio-weblogs.com/0132383/stories/2004/04/23/usingFormBasedAuthentication.html (except without the user role entries as I have no need for those at this time, and we are not using OC4J). My custom login page displays successfully, and if I enter an incorrect user/password combination, I get my custom error page. However, if I enter a correct user/password combination, I get a 'Connection Reset' error (Error 408). I would expect the form authentication to work if the basic authentication works; am I missing something here? I have googled different combinations of these errors, and have found no information on a similar problem. Any ideas are greatly appreciated.
Additional info: I get this error every time I try to log in through my form. This is the error text from Internet Explorer: 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.
Help!