IBM Support

PI67526: JAXRS 1.1 AND 2.0 CLIENTS DO NOT CONTAIN JAVAX.ANNOTATION.* CLASSES AS EXPECTED

Fixes are available

9.0.0.2: WebSphere Application Server traditional V9.0 Fix Pack 2
9.0.0.3: WebSphere Application Server traditional V9.0 Fix Pack 3
9.0.0.4: WebSphere Application Server traditional V9.0 Fix Pack 4
9.0.0.5: WebSphere Application Server traditional V9.0 Fix Pack 5
9.0.0.6: WebSphere Application Server traditional V9.0 Fix Pack 6
9.0.0.7: WebSphere Application Server traditional V9.0 Fix Pack 7
9.0.0.8: WebSphere Application Server traditional V9.0 Fix Pack 8
9.0.0.9: WebSphere Application Server traditional V9.0 Fix Pack 9
9.0.0.10: WebSphere Application Server traditional V9.0 Fix Pack 10
9.0.0.11: WebSphere Application Server traditional V9.0 Fix Pack 11
9.0.5.0: WebSphere Application Server traditional Version 9.0.5 Refresh Pack
9.0.5.1: WebSphere Application Server traditional Version 9.0.5 Fix Pack 1
9.0.5.2: WebSphere Application Server traditional Version 9.0.5 Fix Pack 2
9.0.5.3: WebSphere Application Server traditional Version 9.0.5 Fix Pack 3
9.0.5.4: WebSphere Application Server traditional Version 9.0.5 Fix Pack 4
9.0.5.5: WebSphere Application Server traditional Version 9.0.5 Fix Pack 5
WebSphere Application Server traditional 9.0.5.6
9.0.5.7: WebSphere Application Server traditional Version 9.0.5 Fix Pack 7
9.0.5.8: WebSphere Application Server traditional Version 9.0.5.8
9.0.5.9: WebSphere Application Server traditional Version 9.0.5.9
9.0.5.10: WebSphere Application Server traditional Version 9.0.5.10
9.0.5.11: WebSphere Application Server traditional Version 9.0.5.11

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • JAXRS 1.1 and 2.0 clients do not contain javax.annotation.*
    classes as expected.  As a result, ClassNotFoundException such
    as the following may occur:
    
    Exception in thread "main" java.lang.NoClassDefFoundError:
    javax/annotation/Priority
            at
    org.apache.cxf.jaxrs.utils.AnnotationUtils.getBindingPriority(An
    notationUtils.java:85)
            at
    org.apache.cxf.jaxrs.impl.ConfigurableImpl.register(Configurable
    Impl.java:69)
            at
    org.apache.cxf.jaxrs.client.spec.ClientImpl.register(ClientImpl.
    java:172)
            at
    org.apache.cxf.jaxrs.client.spec.ClientImpl.register(ClientImpl.
    java:49)
            at Test.main(Test.java:15)
    Caused by: java.lang.ClassNotFoundException:
    javax.annotation.Priority
            at
    java.net.URLClassLoader.findClass(URLClassLoader.java:381)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
            at
    sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
            ... 5 more
    

Local fix

  • Add endorsed/endorsed_apis_9.0.jar to the classpath.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server JAX-RS thin client jars              *
    ****************************************************************
    * PROBLEM DESCRIPTION: A J2SE application that uses one        *
    *                      of the JAX-RS thin client jars          *
    *                      fails with ClassNotFoundException:      *
    *                      javax.annotation.Priority               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A J2SE application that uses one of the JAX-RS thin client jars
    fails with ClassNotFoundException: javax.annotation.Priority
    This is due to missing classes.
    

Problem conclusion

Temporary fix

  • Add runtimes\endorsed\endorsed_apis_9.0.jar to the classpath.
    

Comments

APAR Information

  • APAR number

    PI67526

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-08-12

  • Closed date

    2016-11-11

  • Last modified date

    2016-11-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

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

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