NullPointerException When Injecting EJB in a Servlet

(Doc ID 1570150.1)

Last updated on MAY 14, 2018

Applies to:

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


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) :
  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



Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms