IBM Support

PH32869: TEMPORARY EAR FILE NOT DELETED AFTER PARTIAL APPLICATION UPDATE

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • A temporary EAR file remains in the "wstemp" directory after
    using the AdminApp.update command to update files in an
    application. The temporary EAR file should be deleted when the
    command is finished.
    

Local fix

  • Manually delete EAR file in the "wstemp" directory.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server updating an already-installed        *
    *                  application                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: An EAR file remains in the wstemp       *
    *                      directory after updating an             *
    *                      application                             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Users of WebSphere Application Server can update an
    application using the wsadmin command line interface.  When
    wsadmin is used to update files within an application (a
    "partial" application update), a temporary EAR file is created
    in the <WAS_PROFILE_HOME>/wstemp directory. This file remains
    after the command is finished and even after the server is
    shut down.
    This problem does not occur if you update the application
    using the  administrative console, or if you use wsadmin to
    replace the whole EAR.  It only occurs for a partial update
    using the wsadmin client.
    For example, the following command is used to update the
    web.xml file in the application named DefaultApplication.ear:
    wsadmin -lang jython -f webxml-update.py
    Contents of webxml-update.py:
    AdminApp.update('DefaultApplication', 'file', ['-operation',
    'update','-contents',  'web.xml', '-contenturi',
    'DefaultWebApplication.war/WEB-INF/web.xml'])
    AdminConfig.save()
    After command completion DefaultApplication.ear remains in a
    subdirectory of the "wstemp" directory.
    

Problem conclusion

  • The problem was caused by a failure to close the EAR file
    which prevented it from being deleted.  The code is now
    updated to close the EAR file.
    
    The fix for this APAR is targeted for inclusion in fix pack
    8.5.5.20 and 9.0.5.7. For more information, see 'Recommended
    Updates for WebSphere Application Server':
    https://www.ibm.com/support/pages/node/715553
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH32869

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-12-21

  • Closed date

    2021-01-04

  • Last modified date

    2021-01-04

  • 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

  • R850 PSY

       UP

  • R900 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.5","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
02 November 2021