IBM Support

PM39457: FAILURES INJECTING EJBS WITH @INJECT AND BEANS FROM THE EAR's LIB DIRECTORY.

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Context and Dependency Injection (CDI) beans in the EAR's
    "lib" directory will not be available for injection (@Inject),
    which could lead to an UnsatisfiedResolutionException.  EJB
    proxies built by the CDI container are not serializable and
    only implement a single interface.  This could lead to a
    UnsatisfiedResolutionException or NotSerializableException.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server version    *
    *                  8.0 users of Context and Dependency         *
    *                  Injection (CDI) (for example @Inject).      *
    ****************************************************************
    * PROBLEM DESCRIPTION: Failures injecting EJBs with            *
    *                      @inject and beans from the              *
    *                      ear's lib directory due to scanning     *
    *                      and proxy creation errors.              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    This APAR addresses the following issues with CDI:
    1) Beans provided by a jar in the "lib" directory of an EAR
    are not available for injection unless specified explicitly in
    the MANIFEST.MF of the module.
    2) Local interfaces of a No Interface View Enterprise Java
    Bean (EJB) are not added to the list of bean types of an EJB.
    The EJB can not be injected using the local interfaces.
    3) The CDI client proxy provided by @Inject for EJBs is not
    serializable.
    4) The CDI client proxy provided for an EJB does not implement
    all business interfaces of the EJB.
    

Problem conclusion

  • 1) The CDI container was updated to scans jars in the "lib"
    directory of an EAR.
    2) The CDI container was updated to add local interfaces as
    beans types of No Interface View EJBs.
    3 and 4) CDI container was updated to add serializable and all
    interfaces of the EJB to the client proxy.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.0.1.  Please refer to the Recommended Updates
    page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM39457

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-05-17

  • Closed date

    2011-06-15

  • Last modified date

    2011-06-17

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R800 PSY

       UP



Document information

More support for: WebSphere Application Server
General

Software version: 8.0

Reference #: PM39457

Modified date: 17 June 2011


Translate this page: