OSGi bundle resolution failures during deployment in AEM Cloud Manager
In Adobe Experience Manager (AEM) Cloud Manager, OSGi bundle resolution failures during deployment can leave bundles inactive or unresolved and cause services and features to become unavailable. The issue occurs when required OSGi packages or bundles are missing, inactive, or incompatible after deployment. To fix this issue, identify unresolved dependencies and align the required bundles, packages, and code with the deployed AEM environment.
Description description
Environment
- Adobe Experience Manager (AEM) Cloud Manager
Symptoms
-
Deployment fails during the OSGi bundle resolution phase in Cloud Manager.
-
Multiple OSGi bundles (such as Granite UI, DAM, Campaign, and Forms) remain inactive or unresolved.
-
Error logs show unresolved requirements for packages, for example:
org.apache.sling.scripting.jsp.utilcom.adobe.aem.dermis.api.bridge -
Errors such as
ClassNotFoundExceptionfor missing classes. -
Scheduled jobs may fail, and replication test pings may return
Connection refused. -
The AEM instance may become unresponsive after deployment.
Cause
The deployment fails due to unresolved OSGi package dependencies, often resulting from incompatible or missing bundles, incomplete upgrades, or improper package alignment between the AEM base, add-ons, and custom code.
Resolution resolution
Follow the steps below to resolve the issue:
-
Pause further deployment attempts until the runtime and package state are validated.
-
Review the AEM error.log for unresolved OSGi package requirements and identify which bundles are inactive or unresolved.
-
Compare the failed deployment with the last known-good deployment:
- Check installed package and bundle versions using the AEM Web Console (System Console
>Bundles). - Verify that the required bundles (such as the one providing
org.apache.sling.scripting.jsp.util) are present and in theActivestate. - Ensure that all core AEM, DAM, Campaign, and Forms bundles are active.
- Check installed package and bundle versions using the AEM Web Console (System Console
-
Confirm that the AEM base version, Forms add-on, service pack, and any applicable hotfixes are compatible and correctly installed.
-
If a recent upgrade or deployment changed the runtime state, restore or redeploy the last known-good artifact using your standard deployment process (for example, using Cloud Manager or Package Manager).
-
After remediation, perform a controlled deployment:
- Deploy core bundles and content packages separately and sequentially to minimize risk.
- Avoid deploying all custom bundles and content packages together in a single step.
-
After deployment, verify that:
- The bundle providing
org.apache.sling.scripting.jsp.utilis present and active. com.adobe.granite.ui.commonsand other affected bundles are active.- No unresolved package imports remain in the OSGi Web Console.
- AEM and the affected features (such as Forms) pass smoke tests and are responsive.
- The bundle providing
-
If unresolved bundles persist after remediation, plan for a full instance restart to refresh OSGi wiring.