IBM Support

PK15137: GETRESOURCE(<D>) RETURNS A NULL URL ON AN IMPLIED DIRECTORY <D> IN A JAR

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When getResource(<D>) is called and an exact zip file entry for
    directory does not exist in a JAR, but the JAR contains entries
    in subdirectories of <D>, getResourece(<D>) returns null; it
    should return the WSJAR URL for <D>.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All users of WebSphere Application Server.   *
    ****************************************************************
    * PROBLEM DESCRIPTION: Calling getResource(dirSpec) returns    *
    *                      null rather than the JAR URL for        *
    *                      "dirSpec", where argument "dirSpec" is  *
    *                      a directory specification that does     *
    *                      not exist in a JAR file visible to a    *
    *                      WAS application or WAR module class     *
    *                      loader, but the JAR contains class      *
    *                      and resource files in either the        *
    *                      "dirRes" directory, or in a sub-        *
    *                      directory of "dirRes".                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The WebSphere Application Server classloader searches for exact
    directory entries in JAR files and returns null when it does
    not find the exact directory entry. The JVM URLClassLoader
    returns the implied directory entry, so there is an
    incongruence between the JVM classloader and the WebSphere
    Application Server classloaders in the WebSphre Application
    Server class loading environment.
    

Problem conclusion

  • Apply APAR PK15137 to enable method getResource(dirSpec) to
    return the JAR URL for "dirSpec", rather then null, whenever
    an application JAR does contain an exact entry for "dirSpec",
    cut contains class and resource files in directory "dirSpec"
    or a subdirectory of "dirSpec."
    
    The fix for this APAR is currently targeted for inclusion
    in fixpack 6.0.2.7.
    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

    PK15137

  • Reported component name

    WEBSPH APP SERV

  • Reported component ID

    5724J0800

  • Reported release

    60W

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2005-11-11

  • Closed date

    2005-11-21

  • Last modified date

    2006-01-24

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

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

Modules/Macros

  • CLASSLDR
    

Fix information

  • Fixed component name

    WEBSPH APP SERV

  • Fixed component ID

    5724J0800

Applicable component levels

  • R60A PSY

       UP

  • R60H PSY

       UP

  • R60I PSY

       UP

  • R60P PSY

       UP

  • R60S PSY

       UP

  • R60W PSY

       UP

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

Document Information

Modified date:
21 December 2021