It looks like the check in the AecuCloudStartupService -> servicesAreOk is not 100% working.
The following piece of code tries to load the be.orbinson.aem.groovy.console.extension.impl.DefaultExtensionService which is provided by the aem-groovy-console-bundle.
But the line Bundle bundle = FrameworkUtil.getBundle(BindingExtensionProvider.class); can return a different bundle: aem-groovy-console-api instead of aem-groovy-console-bundle, which doesn't contain the be.orbinson.aem.groovy.console.extension.impl.DefaultExtensionService implementation class.
Which could result in not executing the AECU migration scripts on AEMaaCS:
15.03.2023 05:27:08.628 [cm-<>-aem-author-5557b7b64-4tcsd] *ERROR* [Thread-106] de.valtech.aecu.startuphook.AecuCloudStartupService Groovy extension services seem to be not bound
To avoid this problem, we could just fetch the right bundle by its symbolic name aem-groovy-console-bundle (it is a required header for OSGi bundles).
Another way to fix this, would be to use a different service & component description dto, from a service that is only available within the aem-groovy-console-bundle
It looks like the check in the
AecuCloudStartupService
->servicesAreOk
is not 100% working.The following piece of code tries to load the
be.orbinson.aem.groovy.console.extension.impl.DefaultExtensionService
which is provided by theaem-groovy-console-bundle
.But the line
Bundle bundle = FrameworkUtil.getBundle(BindingExtensionProvider.class);
can return a different bundle:aem-groovy-console-api
instead ofaem-groovy-console-bundle
, which doesn't contain thebe.orbinson.aem.groovy.console.extension.impl.DefaultExtensionService
implementation class.Which could result in not executing the AECU migration scripts on AEMaaCS:
15.03.2023 05:27:08.628 [cm-<>-aem-author-5557b7b64-4tcsd] *ERROR* [Thread-106] de.valtech.aecu.startuphook.AecuCloudStartupService Groovy extension services seem to be not bound
To avoid this problem, we could just fetch the right bundle by its symbolic name
aem-groovy-console-bundle
(it is a required header for OSGi bundles).What do you guys think?