Intermittent error accessing FacesContext in custom picketbox login module: JBoss EAP 7

Solution Unverified - Updated -

Issue

  • Using FacesContext.getCurrentInstance() returns null.
  • Need to access the HttpServletRequest in the login module, but using FacesContext does always work.

Environment

  • Red Hat JBoss Enterprise Application Platform 7
  • Picketbox custom login module extending AbstractServerLoginModule
  • Java Server Faces (JSF)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In