IBM Support

PI84113: CLASSSOURCEEXCEPTION WHEN USING WDT

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • com.ibm.wsspi.anno.classsource.ClassSourceException: [
    ClassSourceMappedJarImpl@1321100501
     Failed to open
    at com.ibm.ws.anno.classsource.impl.ClassSourceFactoryImpl
    .wrapIntoClassSou rceException(ClassSourceFactoryImpl.java:89)
    at
    com.ibm.ws.anno.classsource.impl.ClassSourceMappedJarImpl.open
    (ClassSour ceMappedJarImpl.java:132)
     at
    com.ibm.ws.anno.classsource.impl.ClassSourceAggregateImpl.open
    (ClassSour ceAggregateImpl.java:216)
    at com.ibm.wsspi.webcontainer.collaborator.
    WebAppClassStoreImpl.openClassSo
    urce(WebAppClassStoreImpl.java:511)
        at com.ibm.wsspi.webcontainer.collaborator.
    WebAppCDIInjectionClassListColla borator.scanModule
    (WebAppCDIInjectionClassListCollaborator.java:122)
        at
    com.ibm.wsspi.webcontainer.collaborator.WebAppCDIInjectionClassL
    istCollaborator.doGetClassStore
    (WebAppCDIInjectionClassListCollaborator.java:272 )
        at com.ibm.wsspi.webcontainer.collaborator.
    WebAppCDIInjectionClassListColla borator.getInjectionClasses
    (WebAppCDIInjectionClassListCollaborator.java :758)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of IBM WebSphere Application          *
    *                  Server V9.0.0.4 and Rational Application    *
    *                  Developer with WebSphere Developer Tools    *
    ****************************************************************
    * PROBLEM DESCRIPTION: When an application is added to the     *
    *                      server in WDT an exception is           *
    *                      thrown.                                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Annotation steps which are performed to detect CDI metadata
    will throw an exception when processing an application which
    was deployed from the Rational Application Developer (RAD)
    WebSphere Developer Tools (WDT) environment.
    The problem occurs when attempting to add an application to
    the server from the WDT environment.
    The problem as an exception showing the text "Failed to open",
    with the classes ClassSourceMappedJarImpl and
    WebAppCDIInjectionClassListCollaborator listed in the
    exception stack.  For example:
    com.ibm.wsspi.anno.classsource.ClassSourceException:
    [ ClassSourceMappedJarImpl@1321100501 ] Failed to open
    at
    com.ibm.ws.anno.classsource.impl.ClassSourceFactoryImpl.wrapInto
    ClassSourceException(ClassSourceFactoryImpl.java:89)
    at
    com.ibm.ws.anno.classsource.impl.ClassSourceMappedJarImpl.open
    (ClassSourceMappedJarImpl.java:132)
    at
    com.ibm.ws.anno.classsource.impl.ClassSourceAggregateImpl.open
    (ClassSourceAggregateImpl.java:216)
    at
    com.ibm.wsspi.webcontainer.collaborator.WebAppClassStoreImpl.ope
    nClassSource(WebAppClassStoreImpl.java:511)
    at
    com.ibm.wsspi.webcontainer.collaborator.WebAppCDIInjectionClassL
    istCollaborator.scanModule(WebAppCDIInjectionClassListCollaborat
    or.java:122)
    at
    com.ibm.wsspi.webcontainer.collaborator.WebAppCDIInjectionClas
    sListCollaborator.doGetClassStore(WebAppCDIInjectionClassListCol
    laborator.java:272 )
    at
    com.ibm.wsspi.webcontainer.collaborator.WebAppCDIInjectionClassL
    istCollaborator.getInjectionClasses(WebAppCDIInjectionClassListC
    ollaborator.java :758)
    The problem only occurs when using the setting "Run server with
    resources within the workspace".  The problem does not occur
    if the setting is changed to "Run server with resources on the
    server".
    

Problem conclusion

  • The problem occurred because a code path which was added in
    IBM WebSphere Application Server v9.0.0.4 for scanning
    CDI annotations did not handle the case of mapped application,
    as is the case for WebSphere Developer Tools (WDT).  Mapped
    application content can map a web module library JAR files to a
    directory.
    
    The problem was fixed by adding code which correctly handles
    the case of a web module library JAR which is mapped to a
    directory.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 9.0.0.5.  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

    PI84113

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-07-06

  • Closed date

    2017-07-27

  • Last modified date

    2017-08-22

  • 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

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

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

Document Information

Modified date:
04 May 2022