Following the tutorial at http://www.javacodegeeks.com/2012/06/java-jaas-form-based-authentication.html this is the point I can follow.
So I will swith over to another one (http://www.javaranch.com/journal/2008/04/authentication-using-JAAS.html)