IBM Support

PH56052: OSGi APPLICATION NOT STARTING WITH CWWKZ0404E WHEN USING BUNDLE-REQUIREDEXECUTIONENVIRONMENT: JAVASE-17

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • A bundle in an OSGi application with the following manifest
    header will fail to start
    
    Manifest
    
    Bundle-RequiredExecutionEnvironment: JavaSE-17
    
    With an error similar to:
    
    CWWKZ0404E: An exception was generated when trying to
    resolve the contents of the application ... The exception text
    from the OSGi framework is:  Unable to
    Unable to resolve IFileAdapter wrapping file with url
    wsjar:file:/...jar: missing
    requirement
    org.apache.aries.subsystem.core.archive.OsgiExecutionEnvironment
    Requirement: namespace=osgi.ee, attributes={},
    directives={filter=(osgi.ee=JavaSE-17)},
    

Local fix

  •  replace the BREE with
    Require-Capability:
    osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=17))"
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of WebSphere Liberty deploying OSGi   *
    *                  applications.                               *
    ****************************************************************
    * PROBLEM DESCRIPTION: An OSGi application bundle might not    *
    *                      start if it has a header "Bundle-       *
    *                      RequiredExecutionEnvironment" with a    *
    *                      JavaSE-9 or higher.                     *
    ****************************************************************
    * RECOMMENDATION:  The Bundle-RequiredExecutionEnvironment     *
    *                  header was deprecated in version 4.3 of the *
    *                  OSGi specification.                         *
    *                  For new development use the "Require-       *
    *                  Capability" header. E.g. "Require-          *
    *                  Capability: osgi.ee;filter:="(&             *
    *                  (osgi.ee=JavaSE)(version=17))"              *
    *                  If the application bundle manifest headers  *
    *                  cannot be modified, install this APAR to    *
    *                  address the issue.                          *
    ****************************************************************
    In an OSGi application bundle the OSGi bundle manifest header
    Bundle-RequiredExecutionEnvironment with a JavaSE-9 or greater
    may result in an error.
    For example:
    ...missing requirement
    org.apache.aries.subsystem.core.archive.OsgiExecutionEnvironment
    Requirement: namespace=osgi.ee, attributes={},
    directives={filter=(osgi.ee=JavaSE-17)}
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH56052

  • Reported component name

    LIBERTY PROF -

  • Reported component ID

    5655W6514

  • Reported release

    CD0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2023-07-27

  • Closed date

    2023-08-09

  • Last modified date

    2023-08-09

  • 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 PROF -

  • Fixed component ID

    5655W6514

Applicable component levels

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"CD0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
24 August 2023