IBM Support

PM29323: ClassNotFoundException when running dynamic web application if jar with Main-Class in MANIFEST.MF is included in WEB-INF/lib

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A ClassNotFoundException will result when running a dynamic web
    application (version 2.5 or higher) that calls code from a JAR
    file located in the WEB-INF/lib directory if the JAR has a
    Main-Class specified in MANIFEST.MF
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A ClassNotFoundException will result when running a dynamic
    web application (version 2.5 or higher)  that calls code
    from a JAR file located in the WEB-INF/lib directory if the
    JAR has a Main-Class specified in MANIFEST.MF. The problem
    is that the JAR is being treated as an application client
    module (instead of a regular JAR file). This happens only
    when the publishing setting for the server is "Run server
    with resources within workspace" (default setting).
    

Problem conclusion

  • All the JAR files located in WEB-INF/lib folder of a dynamic
    web application are treated as regular jar files, even if
    the JAR has a Main-Class specified in MANIFEST.MF.
    
    This issue is fixed in Rational Application Developer
    Version 8.0.2.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM29323

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-12-21

  • Closed date

    2011-03-11

  • Last modified date

    2011-03-11

  • 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

    RATL APP DEV WI

  • Fixed component ID

    5724J1901

Applicable component levels

  • R800 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
11 March 2011