rh-desoftware opened a new issue, #2833:
URL: https://github.com/apache/activemq/issues/2833

   ### Description
   
   Since 6.3.0 the bundle `org.apache.activemq:activemq-osgi` is a 
multi-release jar (`Multi-Release: true`).
   The supplemental manifests `META-INF/versions/21/OSGI-INF/MANIFEST.MF` and
   `META-INF/versions/24/OSGI-INF/MANIFEST.MF` contain an empty header:
   
       Require-Capability:
   
   On Java 21 the framework uses the supplemental manifest, and the empty 
header becomes a requirement
   without namespace that can never be satisfied. The bundle stays unresolved, 
and so does every bundle
   that imports `org.apache.activemq.*`.
   
   ### Affected versions
   
   Checked: 6.3.0, 6.3.3, 6.4.0 (all have the empty header).
   Not affected: 6.2.6, 6.2.10 (no multi-release jar).
   
   ### Steps to reproduce
   
   1. Apache Karaf 4.4.12 (Felix Framework 7.0.5) on Java 21
   2. Add the feature repository 
`mvn:org.apache.activemq/activemq-karaf/6.3.3/xml/features`
   3. Install the feature `activemq`
   
   ### Actual result
   
       Unable to resolve org.apache.activemq.osgi [105](R 105.0): missing 
requirement
       [org.apache.activemq.osgi [105](R 105.0)] ; (*)
       Unresolved requirements: [[org.apache.activemq.osgi [105](R 105.0)] ; 
(*)]
   
   ### Expected result
   
   The bundle resolves, as it does with 6.2.x.
   
   ### Analysis
   
   Removing the empty `Require-Capability:` line from both supplemental 
manifests of
   `activemq-osgi-6.3.3.jar` (nothing else changed) makes the bundle resolve in 
the same container.
   
   The main manifest has no `Require-Capability` header. 6.3.x is built with
   Maven Bundle Plugin 6.2.0 / Bnd 7.4.0 (6.2.6: 6.0.0 / 7.0.0), so the empty 
header probably
   comes from the multi-release manifest generation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to