"javax.security.auth.login.LoginException: unable to find LoginModule class:" thrown from HttpSessionListener
Issue
- I get LoginException when a http session is invalidated. It tells that my custom LoginModule is not found.
17:11:53,710 ERROR [stderr] (http-/10.10.10.10:8080-1) javax.security.auth.login.LoginException: unable to find LoginModule class: com.sample.login.MyLoginModule
17:11:53,711 ERROR [stderr] (http-/10.10.10.10:8080-1) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:800)
17:11:53,712 ERROR [stderr] (http-/10.10.10.10:8080-1) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)
17:11:53,713 ERROR [stderr] (http-/10.10.10.10:8080-1) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:690)
17:11:53,714 ERROR [stderr] (http-/10.10.10.10:8080-1) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:688)
17:11:53,715 ERROR [stderr] (http-/10.10.10.10:8080-1) at java.security.AccessController.doPrivileged(Native Method)
17:11:53,715 ERROR [stderr] (http-/10.10.10.10:8080-1) at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:687)
17:11:53,716 ERROR [stderr] (http-/10.10.10.10:8080-1) at javax.security.auth.login.LoginContext.logout(LoginContext.java:636)
17:11:53,717 ERROR [stderr] (http-/10.10.10.10:8080-1) at com.sample.web.MyHttpSessionListener.sessionDestroyed(MyHttpSessionListener.java:71)
17:11:53,718 ERROR [stderr] (http-/10.10.10.10:8080-1) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:681)
...
Environment
- Red Hat JBoss Enterprise Application Server (EAP)
- 6.4
- Red Hat JBoss Portal
- 6.2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.