Cannot start bundle, missing requirement [479.0] osgi.wiring.package; (osgi.wiring.package=com.day.cq.commons.mail) | Community
Skip to main content
May 5, 2016

Cannot start bundle, missing requirement [479.0] osgi.wiring.package; (osgi.wiring.package=com.day.cq.commons.mail)

  • May 5, 2016
  • 2 replies
  • 6720 views

Hi,

I have created a bundle to send email using CQ Mailer, but my bundle cannot start, the error message I have found on the log:

05.05.2016 11:18:43.875 *ERROR* [FelixStartLevel] ERROR: Error starting inputstream:nypbundle-bundle-1.0-SNAPSHOT.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle com.dsa.nyp.nypbundle-bundle [479]: Unable to resolve 479.0:
missing requirement [479.0] osgi.wiring.package; (osgi.wiring.package=com.day.cq.commons.mail))
org.osgi.framework.BundleException: Unresolved constraint in bundle com.dsa.nyp.
nypbundle-bundle [479]: Unable to resolve 479.0: missing requirement [479.0] osg
i.wiring.package; (osgi.wiring.package=com.day.cq.commons.mail)
        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4095)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2114)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1368)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
        at java.lang.Thread.run(Thread.java:745)

I have checked this CQ common bundle, it is started and activate. May I know what could be the cause of this error? 

I am using AEM 6.1 Service Pack 1.

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

smacdonald2008
Level 10
May 5, 2016

I have created a bundle to send email using CQ Mailer

Send me source files for the OSGi bundle at scottm@adobe.com. I need to look at this code to identify what is wrong - you are missing something - either a wrong depedencies or outdates API call.

Lokesh_Shivalingaiah
Level 10
May 5, 2016

what is the version you have mentioned in you pom.xml ?

May 5, 2016
Here are the dependencies I have used in the pom file. <dependencies> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.compendium</artifactId> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.core</artifactId> </dependency> <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.apache.felix.scr.annotations</artifactId> </dependency> <dependency> <groupId>biz.aQute</groupId> <artifactId>bndlib</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> </dependency> <dependency> <groupId>javax.jcr</groupId> <artifactId>jcr</artifactId> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.api</artifactId> </dependency> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.jcr.api</artifactId> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> </dependency> <dependency> <groupId>com.day.cq</groupId> <artifactId>cq-mailer</artifactId> <version>5.6.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> <version>1.4.1</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-email</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>com.day.cq</groupId> <artifactId>cq-commons</artifactId> <version>5.6.4</version> <scope>provided</scope> </dependency> </dependencies>
smacdonald2008
Level 10
May 5, 2016

I got your bundle into Active State - I sent you the code via email:

Hope this helps