Static initialization block contains code that accesses the CDI BeanManager throws exception.
(Doc ID 1629907.1)
Last updated on DECEMBER 12, 2022
Applies to:
Oracle WebLogic Server - Version 12.1.2.0.0 and laterInformation in this document applies to any platform.
Symptoms
If a static initialization block contains code that accesses the CDI BeanManager then exceptions "javax.naming.NameNotFoundException: remaining name: comp/BeanManager" occurs because the class is loaded and initialized before CDI is initialized.
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 |
Cause |
Solution |
References |