I managed to do it, authentication works but when correct credentials a entered I get this ERROR:

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

any suggestions? does anyone has a working example of JBOSS AS 7.1 and JAAS?