Sometimes when we try to deploy code, bundles may not be in active state in AEM 6.1. We can see below error message.
Error Message:
22.07.2017 10:40:27.509 *ERROR* [qtp2141213534-59] org.apache.felix.http.jetty %bundles.pluginTitle: Cannot start (org.osgi.framework.BundleException: Unresolved constraint in bundle com.aem.kishore.bundle-core [463]: Unable to resolve 463.2: missing requirement [463.2] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.cq.sightly)(version>=2.2.0)(!(version>=3.0.0))))
org.osgi.framework.BundleException: Unresolved constraint in bundle com.aem.kishore.bundle-core[463]: Unable to resolve 463.2: missing requirement [463.2] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.cq.sightly)(version>=2.2.0)(!(version>=3.0.0)))
Solution:
Error Message:
22.07.2017 10:40:27.509 *ERROR* [qtp2141213534-59] org.apache.felix.http.jetty %bundles.pluginTitle: Cannot start (org.osgi.framework.BundleException: Unresolved constraint in bundle com.aem.kishore.bundle-core [463]: Unable to resolve 463.2: missing requirement [463.2] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.cq.sightly)(version>=2.2.0)(!(version>=3.0.0))))
org.osgi.framework.BundleException: Unresolved constraint in bundle com.aem.kishore.bundle-core[463]: Unable to resolve 463.2: missing requirement [463.2] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.cq.sightly)(version>=2.2.0)(!(version>=3.0.0)))
Solution:
- Delete existing bundle first.
- Add below code in bundle pom.xml and rebuild the code.
<Import-Package> !org.apache.log.*, !org.apache.avalon.* ----------------------------- ----------------------------- </Import-Package>
- In AEM 6.1, it can be due to unwanted "Equinox" bundle. Check this post for more info.
I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well..
ReplyDeletewebsite development in lucknow
Hi, I am using AEM 6.4 and when I add the above two lines in my pom xml, the bundle does get activated, but then all the servlets stop working. Any idea how to fix that?
ReplyDelete