Showing posts with label Pom.xml. Show all posts
Showing posts with label Pom.xml. Show all posts

Friday, 21 July 2017

org.osgi.framework.BundleException:osgi.wiring.package=com.adobe.cq.sightly

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:
  • 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>