Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A000000Bd4MNIAZ&sfdc.override=1 Steps to Reproduce: See http://java.net/jira/browse/JAVASERVERFACES-2561 project_key: JBPAPP6 @PreDestroy not called upon session expiration on @ViewScoped managed beans (JAVASERVERFACES-2561).
The issue has been resolved in Mojarra 2.1.16. Upgrade jsf-impl to 2.1.16-jbossorg-1 and jboss-jsf-api_2.1_spec to 2.0.8.Final. JSF Impl source is here: https://github.com/jboss/mojarra/tree/2.1.16-jbossorg-1 JSF API source is here: https://github.com/jboss/jboss-jsf-api_spec The jars are in Nexus. https://repository.jboss.org/nexus/index.html#nexus-search;gav~~~2.1.16-jbossorg-1~~ https://repository.jboss.org/nexus/index.html#nexus-search;gav~~jboss-jsf-api_2.1_spec~2.0.8.Final~~
Link: Added: This issue incorporates AS7-5586
Link: Added: This issue relates to JBPAPP-10496
Stan's commit to upstream master: https://github.com/jbossas/jboss-as/commit/5ca2dc23dfd960a9faac525ea2b4b8b4b542c26c
https://github.com/jbossas/jboss-eap/pull/47 There is no matching pull request in community. AS7-6709 will be closed as "Won't Fix". We are in the process of upgrading JSF to spec version 2.2 in community. However, the jbossorg version of 2.1.19 is needed to fix a memory leak that occurs on some portlet-based JSF applications. So this is needed in EAP at present.
Verified on EAP 6.1.0.ER3