0 Replies Latest reply on Nov 14, 2011 11:44 AM by Eric Lu

    JBoss AS 5 ExtendedFormAuthenticator no exception populated.

    Eric Lu Newbie



      Using JBoss AS 5.1.0GA now, trying to create a custom login module from DatabaseServerLoginModule, but the exception still could not be populated to the session attribute when we need to tell the end user the real reason of login failure.


      Tried adding changes to the context.xml:


      <!-- Add the ExtendedFormAuthenticator to get access to the username/password/exception ->
      <Context cookies="true" crossContext="true">
      <Valve className="org.jboss.web.tomcat.security.ExtendedFormAuthenticator"
             includePassword="true" ></Valve>


      based on the post: http://community.jboss.org/wiki/ExtendedFormAuthenticator


      but somehow it just does not work.


      Any hints?