My Oracle Support Banner

WebLogic 12c Does Not Call Postconstruct Methods Of Jsf 2.0 Managed Beans (Doc ID 1414700.1)

Last updated on OCTOBER 25, 2024

Applies to:

Oracle WebLogic Server - Version 12.1.1.0 to 12.1.1.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

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 Managed Beans and CDI beans (even if they never reference each other).

Sample code snippets:

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution
References


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