IBM Support

PM40278: WEB APPLICATIONS NOT RECOGNIZING @PERSISTENCEUNIT OR @PERSISTENCECONTEXT REFERENCES OVERRIDDEN IN WEB-INF/E

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • WebSphere Application Server version 8.0 users will not be
    able to start their applications due to an
    InjectionConfigurationException.
    The error message (CWWJP0041E) identifies the bean in the war
    module of the application containing the conflicting
    configuration data.
    The message also identifies the conflicting attribute values.
    If the conflict is due to conflicting attribute values
    originating from an annotation, the message will identify the
    annotation (@PersistenceContext, @PersistenceUnit) where the
    problem originated.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server version 8.0 utilizing Web            *
    *                  Applications containing EJBs where the      *
    *                  attribute values contained in its           *
    *                  @PersistenceContext or @PersistenceUnit     *
    *                  annotations are overriden in the EJB        *
    *                  descriptor.                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: Web applications fail to start due to   *
    *                      an InjectionConfigurationException      *
    *                      that results in error CWWJP0041E.       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The software responsible for managing the metadata contained
    in the @PersistenceContext and @PersistenceUnit annotations
    failed to consult the EJB descriptor for overrides prior to
    providing the web descriptor to the injection engine.
    

Problem conclusion

  • The software responsible for managing the metadata contained
    in the @PersistenceContext and @PersistenceUnit annotations now
    consults the EJB descriptor for overrides prior to providing
    the web descriptor to the injection engine.
    
    A work-round is to check the EJB Deployment Descriptor
    for a these values and then manually inject a
    <persistence-unit-ref> or <persistence-context-ref> stanza
    into the web deployment descriptor.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.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

    PM40278

  • 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

    2011-05-27

  • Closed date

    2011-08-15

  • Last modified date

    2011-08-15

  • 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

[{"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:
27 October 2021