WebLogic 12c Does Not Call Postconstruct Methods Of Jsf 2.0 Managed Beans
(Doc ID 1414700.1)
Last updated on SEPTEMBER 14, 2021
Applies to:Oracle WebLogic Server - Version 22.214.171.124 to 126.96.36.199 [Release 12c]
Information in this document applies to any platform.
WebLogic 12c (12.1.1) does not call the PostConstruct method for beans annotated with @ManagedBean when there is a beans.xml file in the project. As soon as the beans.xml file is removed, the PostConstruct method is invoked.
However, this means that WebLogic 12c does not support projects that have both ManagedBeans and CDI beans (even if they never reference eachother).
Sample code snippets -
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