NullPointerException When Injecting EJB in a Servlet
(Doc ID 1570150.1)
Last updated on OCTOBER 09, 2023
Applies to:
Oracle WebLogic Server - Version 12.1.1.0 and laterInformation in this document applies to any platform.
Symptoms
A J2EE application is deployed into 12.1.1. WLS.
This application has two modules :
1. EJB module packaged in ejb-service-request-2.jar EJB Jar file containing a Stateless EJB bean (TestEjb) :
my.package.ejb.TestEjb.class
2. WEB module packaged in cdi_and_richfaces-2.0.war War file containing a servlet (Servlet1).
The servlet is packaged in my-web-lib.jar.
And, in classes directory of the War file is stored my.managedBean.EJBInjectionWorkaroundInitializer.class
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 |