My Oracle Support Banner

WLS10.3.2 - Injected JSF Bean not calling methods annoted with @PostConsruct or @PreDestroy. (Doc ID 1098649.1)

Last updated on APRIL 15, 2020

Applies to:

Oracle WebLogic Server - Version 10.3.2 and later
Information in this document applies to any platform.


In WLS10.3.2, injected JSF Bean is not calling methods annotated with @PostConsruct or @PreDestroy. 

Weblogic should honor this based on documentation. "The Java EE programming model uses the JDK 5.0 annotations feature for Web containers, such as EJBs, servlets, Web applications, and JSPs"

And from the  JSF 1.2 specification:

Section 5.4.1
In addition to the annotations from Section 14.5 of the Servlet 2.5 Specification, JSF implementations running in a Java EE 5 compliant container must support attaching the @PostConstruct and @PreDestroy annotations to aid in awareness of the managedbean lifecycle.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.