Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
While updating to the latest parent, I found pax exam-based integration tests to fail.
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.107 s <<< FAILURE! - in org.apache.sling.servlets.resolver.it.ServletResourceIT [ERROR] org.apache.sling.servlets.resolver.it.ServletResourceIT Time elapsed: 4.931 s <<< ERROR! org.ops4j.pax.exam.TestContainerException: There are unresolved bundles. See previous ERROR log messages for details.
ERROR: Bundle BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603 [85] Error starting file:/home/joerg/repos/sling-git/sling-org-apache-sling-servlets-resolver/target/paxexam/ServletResourceIT/a882a707-4dfe-48d2-ba47-2b4175d777c3/pax-exam-downloads/BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603_0.jar (org.osgi.framework.BundleException: Unable to resolve BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603 [85](R 85.0): missing requirement [BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603 [85](R 85.0)] osgi.ee; (osgi.ee=UNKNOWN) Unresolved requirements: [[BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603 [85](R 85.0)] osgi.ee; (osgi.ee=UNKNOWN)]) org.osgi.framework.BundleException: Unable to resolve BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603 [85](R 85.0): missing requirement [BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603 [85](R 85.0)] osgi.ee; (osgi.ee=UNKNOWN) Unresolved requirements: [[BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603 [85](R 85.0)] osgi.ee; (osgi.ee=UNKNOWN)] at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398) at org.apache.felix.framework.Felix.startBundle(Felix.java:2308) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1566) at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:297) at java.base/java.lang.Thread.run(Thread.java:829)
manifest of BuildByTinyBundles5ef75f77-5f6a-4470-9801-53e7e0f77603_0.jar
[...] Require-Capability: osgi.extender;filter:="(&(osgi.extender=osgi.compo nent)(version>=1.3.0)(!(version>=2.0.0)))",osgi.ee;filter:="(osgi.ee= UNKNOWN)" Service-Component: OSGI-INF/org.apache.sling.servlets.resolver.it.Test ResourceProvider.xml,OSGI-INF/org.apache.sling.servlets.resolver.it.T estServiceUserValidator.xml TinybundlesVersion: pax-tinybundles-3.0.0 Tool: Bnd-3.5.0.201709291849
I narrowed this down to the upgrade from bundle parent 49 to 50, and it is caused by the bump of the minimal java version to 11 (SLING-11979).
Because if I don't run with my java 11 default, but with
JAVA_HOME=/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre mvn clean install -Dsling.java.version=8
the build runs fine (with parent 50).
Attachments
Issue Links
- blocks
-
SLING-11979 update servlets-resolver to parent 52
- Closed
- causes
-
SLING-11996 Upgrade Pax TinyBundles to 4.0.0
- Resolved
- relates to
-
SLING-12576 Update to TinyBundles 4.0.0
- Closed