IBM Support

PM66028: DEV/J2EE.JAR DOES NOT EXPORT ALL THE JAVAX PACKAGES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Web application bundle (WAB) projects in Rational Application
    Developer are not able to use packages that are not exported
    even though WAR projects may use all the javax packages.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server users      *
    *                  developing OSGi applications                *
    ****************************************************************
    * PROBLEM DESCRIPTION: The WAS_HOME/dev/JavaEE/j2ee.jar does   *
    *                      not export all Java packages for OSGi   *
    *                      application development.                *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack that includes this       *
    *                  APAR.                                       *
    ****************************************************************
    Developers that are building an OSGi application that
    uses some of the new Java EE 6 APIs may have problems
    resolving missing class files for APIs when using Rational
    Application Developer.
    The following packages are missing from the classpath:
    javax.annotation.sql
    javax.decorator
    javax.ejb.embeddable
    javax.enterprise.context
    javax.enterprise.context.spi
    javax.enterprise.event
    javax.enterprise.inject
    javax.enterprise.inject.spi
    javax.enterprise.util
    javax.faces.bean
    javax.faces.component.behavior
    javax.faces.component.visit
    javax.faces.view
    javax.faces.view.facelets
    javax.inject
    javax.persistence.criteria
    javax.persistence.metamodel
    javax.security.auth.message
    javax.security.auth.message.callback
    javax.security.auth.message.config
    javax.security.auth.message.module
    javax.validation
    javax.validation.bootstrap
    javax.validation.constraints
    javax.validation.groups
    javax.validation.metadata
    javax.validation.spi
    

Problem conclusion

  • OSGi uses metadata in the META-INF/MANIFEST.MF file to
    indicate which Java packages contained in the bundle should be
    exported for use by other OSGi bundles.  The metadata to
    export some of the Java packages was missing from this file.
    
    The dev/JavaEE/j2ee.jar contained appropriate classes for
    compilation by command line tools such as javac, but it did
    not export these for OSGi use within Rational Application
    Developer.
    
    The Export-Package metadata has been updated to include the
    missing classes.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.0.1.  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

    PM66028

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-06-01

  • Closed date

    2012-10-12

  • Last modified date

    2012-10-12

  • 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

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

Document Information

Modified date:
02 November 2021