Is there a way to obtain the username and password for a failed login through j_security_check in JBoss/Tomcat ?
http://wiki.jboss.org/wiki/Wiki.jsp?page=CustomizingSecurityUsingValves