Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java8 not supported with the provided core component .jar #2892

Open
cuener opened this issue Nov 7, 2024 · 2 comments
Open

Java8 not supported with the provided core component .jar #2892

cuener opened this issue Nov 7, 2024 · 2 comments

Comments

@cuener
Copy link

cuener commented Nov 7, 2024

Expected Behaviour
After Installing core components v. 2.27.0 package bundle will start automatically and resolve all dependencies.

Actual Behaviour
The package installs but the bundle doesn't start, throwing an error about missing a requirement of java 11.

Steps to Reproduce
Start an instance of AEM 6.5 running on Java 8
Upload https://codeload.github.com/adobe/aem-core-wcm-components/zip/refs/tags/core.wcm.components.reactor-2.27.0 via packmgr and install.
Note that the bundle doesn't start, and there is an error stack trace in the logs.
Platform and Version
AEM 6.5 on Java 8 SP 20

Logs taken while reproducing problem
Cannot start (org.osgi.framework.BundleException: Unable to resolve com.adobe.cq.core.wcm.components.core [850](R 850.0): missing requirement [com.adobe.cq.core.wcm.components.core [850](R 850.0)] osgi.ee; (&(osgi.ee=JavaSE)(version=11)) Unresolved requirements: [[com.adobe.cq.core.wcm.components.core [850](R 850.0)] osgi.ee; (&(osgi.ee=JavaSE)(version=11))])
org.osgi.framework.BundleException: Unable to resolve com.adobe.cq.core.wcm.components.core [850](R 850.0): missing requirement [com.adobe.cq.core.wcm.components.core [850](R 850.0)] osgi.ee; (&(osgi.ee=JavaSE)(version=11)) Unresolved requirements: [[com.adobe.cq.core.wcm.components.core [850](R 850.0)] osgi.ee; (&(osgi.ee=JavaSE)(version=11))]

aem-core-wcm-components-core.wcm.components.reactor-2.27.0.zip
Manifest-Version: 1.0
...
Bundle-ManifestVersion: 2
Bundle-Name: Adobe Experience Manager Core WCM Components Core Bundle
Bundle-RequiredExecutionEnvironment: JavaSE-11
Bundle-SymbolicName: com.adobe.cq.core.wcm.components.core
Bundle-Version: 2.27.0
...

@krassib
Copy link

krassib commented Nov 21, 2024

I am confirming the issue. It seems that starting from 2.26.0 the aem.java.version was bumped to 11.

https://github.com/adobe/aem-core-wcm-components/blob/main/parent/pom.xml#L59

@beo4
Copy link

beo4 commented Nov 22, 2024

#2755 with this Pull request its introduced. do not understand why this change in conjunction with l18n implies a Java upgrade.
[SITES-21656] OOTB Experience Fragment Localization Issue for /eu/fr Site by @alexandru-stancioiu in #2755

https://github.com/adobe/aem-core-wcm-components/releases/tag/core.wcm.components.reactor-2.26.0
the release notes from 2.26.0 do not state the removal of java 8 support

As far as I understand removing of the Java 8 support should be treated as an incompatible change and should be reflected in an upgrade of major version. version 2.26 and 2.27 should be removed as this leads to compications and replaced with 3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants