IBM Support

PI11738: SPRING LOAD TIME WEAVING DOES NOT WORK WITH LIBERTY PROFILE.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When deploying applications that make use of Spring load time
    weaving, an Exception similar to the one below is output:
    
    Caused by:
    org.springframework.beans.factory.BeanCreationException: Error
    creating bean with name
    'org.springframework.context.weaving.AspectJWeavingEnabler#0':
    Initialization of bean failed; nested exception is
    org.springframework.beans.factory.BeanCreationException: Error
    creating bean with name 'loadTimeWeaver': Initialization of
    bean failed; nested exception is
    java.lang.IllegalStateException: ClassLoader
    [com.ibm.ws.classloading.internal.UnifiedClassLoader] does NOT
    provide an 'addTransformer(ClassFileTransformer)' method.
    Specify a custom LoadTimeWeaver or start your Java virtual
    machine with Spring's agent:
    -javaagent:org.springframework.instrument.jar
    at
    org.springframework.beans.factory.support.AbstractAutowireCapabl
    eBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.jav
    a:529)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile and Spring           *
    ****************************************************************
    * PROBLEM DESCRIPTION: The Spring Framework class load         *
    *                      weaving fails in Liberty Profile        *
    *                      servers.                                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Spring's class load time weaving fails to operate in WebSphere
    Liberty Profile versions prior to 8.5.5.3.  Applications that
    attempt to use this framework will see exceptions like:
    org.springframework.beans.factory.BeanCreationException: Error
    creating bean with name
    'org.springframework.context.weaving.AspectJWeavingEnabler#0':
    Initialization of bean failed; nested exception is
    org.springframework.beans.factory.BeanCreationException: Error
    creating bean with name 'loadTimeWeaver': Initialization of
    bean failed; nested exception is
    java.lang.IllegalStateException: ClassLoader
    [com.ibm.ws.classloading.internal.UnifiedClassLoader] does NOT
    provide an 'addTransformer(ClassFileTransformer)' method.
    Specify a custom LoadTimeWeaver or start your Java virtual
    machine with Spring's agent:
    -javaagent:org.springframework.instrument.jar
    at
    org.springframework.beans.factory.support.AbstractAutowireCapabl
    eBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.jav
    a:529)
    

Problem conclusion

  • This issue is resolved by modifying the Liberty Server
    classloaders to support Spring's load time weaving.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.5.3. 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

    PI11738

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-02-14

  • Closed date

    2014-07-22

  • Last modified date

    2014-07-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

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

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

Document Information

Modified date:
28 April 2022