IBM Support

PK67673: CHANGING THE JAVA COMPILER COMPLIANCE LEVEL FROM 5.0 TO 1.4 THROWS DUPLICATE RESOURCE REFERENCE ERROR.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • While migrating an exiting Rational Application Developer V6
    application into Rational Application Developer 7006, the
    resource reference defined in the deployment descriptor gets
    regenerated and becomes a duplicate with the existing entry.
    
    To reproduce the problem, please follow the steps below:
    1.Import the PI file
    2.Ignore all error messages
    3.Change the Java Compiler compliance level from 5.0 to 1.4;
    RAD->Window -> Preferences -> Java -> Compiler -> Java Compiler
    compliance level
    4.Click OK.
    5.Wait for the automatic build to be completed. Then the
    CHKJ3013E error will shows up in the problems view.
    

Local fix

  • Workaround:
    Delete the old resource reference and keeping the newly
    generated resource reference. The error will goes away.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of WebSphere Application Server   *
    *                  Toolkit v6.1.1 and Rational Application     *
    *                  Developer v7.0                              *
    ****************************************************************
    * PROBLEM DESCRIPTION: The annotation builder causes a         *
    *                      duplicate enterprise beans resource     *
    *                      reference to be added to the            *
    *                      ejb-jar.xml file.                       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When the annotation builder runs it will cause a duplicate
    resource reference entry to be added to the EJB deployment
    descriptor (ejb-jar.xml).  This will lead to a CHKJ3013E
    validation error in the Problems view as a result of there
    being a duplicate resource reference with the same resource
    reference name.
    

Problem conclusion

  • The annotation builder cleans the entire EJB deployment
    descriptor and rebuilds it everytime that it is run, however,
    it was missing the logic to purge the existing resource
    references.  A fix has been added to ensure that resource
    references are removed before being reconstructed.
    
    The fix for this APAR is currently targeted for inclusion in
    the WebSphere Application Server Toolkit fixpack 6.1.1.8 and
    Rational Application Developer fixpack 7.0.0.8.  Please refer
    to the following Recommended Updates page for WebSphere
    Application Server Toolkit delivery information:
    http://www.ibm.com/support/docview.wss?uid=swg27004980
    and the following Recommended Updates page for Rational
    Application Developer delivery information:
    http://www.ibm.com/support/docview.wss?uid=swg27007823
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK67673

  • Reported component name

    WEBAPP SERVER A

  • Reported component ID

    5724J0820

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-06-16

  • Closed date

    2008-09-10

  • Last modified date

    2008-09-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

    WEBAPP SERVER A

  • Fixed component ID

    5724J0820

Applicable component levels

  • R610 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
23 October 2021