IBM Support

PM80931: INJECTION OF AN EJB IN A FIELD WITH PARAMETERIZED INTERFACE fails with UnsatisfiedResolutionException

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • There is a class named <Bean name>, which is a stateless
    session Bean. This bean implements the interface    <Bean
    name>.<GenericType>, which is annotated with @Local.
    
    In the class <Bean name>, have a field  importExecutor with
    type <Bean name>.<GenericType>, which is annotated with
    @Inject. On startup, it  would be expected that the  class
    <Bean name> is injected, however I get the following error
    message:
    
    
    javax.enterprise.inject.UnsatisfiedResolutionException: Api
    type [<name>.<path>.<Bean name>.
    <Bean name> is not found with the qualifiers
    Qualifiers: [@javax.enterprise.inject.Default()]
    for injection into
    Field Injection Point, field :  private <field>.
    <Bean name>.<Bean name> <name>.<path>.<Bean name>, Bean Owner :
    

Local fix

  • No known work around at this time.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server using Contexts and Dependency        *
    *                  Injection (CDI)                             *
    ****************************************************************
    * PROBLEM DESCRIPTION: UnsatisfiedResolutionException thrown   *
    *                      when injecting an EJB using a generic   *
    *                      type.                                   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A javax.enterprise.inject.UnsatisfiedResolutionException will
    be thrown when using @Inject to inject an EJB using an
    interface with a generic type.
    

Problem conclusion

  • The CDI container has been modified to correctly identify the
    generic types of the EJB interfaces.  In order to enable this
    new behavior a property must be set with name
    "com.ibm.ws.webbeans.discoverEJBGenericTypes" and value "true"
    in a file named openwebbeans.properties located at META-
    INF/openwebbeans of the module or jar.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.0.7 and the fix pack following 8.5.0.2.  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

    PM80931

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-01-18

  • Closed date

    2013-04-10

  • Last modified date

    2013-04-10

  • 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

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R800 PSY

       UP

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 October 2021