The following stack trace is written in the error.log file after installing a custom application package.
Could not startbundle com.adobe.cq.sample-bundle [526]. Reason: {}. Will retry.
org.osgi.framework.BundleException: Unable to resolve com.adobe.cq.sample-bundle
[526](R 526.0): missing requirement [com.adobe.cq.sample-bundle] osgi.wiring.package
What are two different ways that the developer could resolve the OSGi bundle dependency error? (Choose two)
Select all that apply, then click Submit answer.
-
○
Go to the Dependency Finder in the System Console to find if another bundle is exporting a similar version of the classes and change the project pom.xml to match the same version
-
○
Install the jar in AEM via the curl command 'curl -u username:password -F file=@"./com.example.customlib-3.8.jar" -F name="Dependency" -F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp --progress-bar -o upload.txt' C. Create a folder named "deploy" under $AEM_HOME/crx-quickstart/ and copy com.example.customlib-3.8.jar in there so AEM uploads it automatically
-
○
Go to the project parent pom.xml file and add the dependency with the scope "compile" and instruct the bundle plugin to include the dependency in runtime
-
○
Upload the file com.example.customlib-3.8.jar into /apps/
/libs folder in CRX DE to make it available for the OSGi bundle

