Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Is it possible to show a custom error message in a custom login module with JAAS in EAP 7.2?

    Posted on

    Does the solution described on https://access.redhat.com/solutions/3190602 still work with EAP 7.2? How do you get error from out of the error page?

    I am working on upgrading from Jboss 5.1 to 7.2 and when the LoginModule throw a javax.security.auth.login.LoginException it is going to Form error page. The JSP is checking for error but is null.

    E.g.
    // 5.1 excp was instance of LoginException, but is null.
    Exception ex = (Exception) session.getAttribute("j_exception");

    I also tried...
    Exception ex = (Exception) request.getAttribute("javax.servlet.error.exception");

    Could not find anything in session or request with the error.

    In Web.xml:

        
            FORM
            
                /login/login_tile.jsf
                /login/error.jsp
            
        
    

    In Jboss-web.xml:

    
        java:/jaas/cp-netmark
        mydomain
        
            org.jboss.as.web.security.ExtendedFormAuthenticator
            
    
    

    In standalone-full.xml:

     
        
            
                
                
            
            
                
                
                
                
            
        
    
    

    Context.xml:

    
        
    
    

    I read that the Context.xml is not longer used, and to put in jboss-xml

    I tried:

        
           org.jboss.as.web.security.ExtendedFormAuthenticator
           
               includePassword
               false
                   
        
    

    Where is the ExtendedFormAuthenticator class to use?

    by

    points

    Responses

    Red Hat

    Quick Links

    Help

    Site Info

    Related Sites

    © 2025 Red Hat, Inc.