NullPointerException When Injecting EJB in a Servlet (Doc ID 1570150.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle WebLogic Server - Version 12.1.1.0 and later
Information 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

 

Cause

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