title: Unable to resolve 1.0: missing requirement [1.0] osgi.wiring.package; (&(osgi.wiring.package=
body: <p>I am trying to start one of my bundles, but as soon as I start it, I get the below exception. I am not sure what the problem is.</p>
  
  <pre><code>org.osgi.framework.BundleException: Unresolved constraint in bundle GoldeneyeModellingFramework [1]: Unable to resolve 1.0: missing requirement [1.0] osgi.wiring.package; (&amp;(osgi.wiring.package=com.host.domain.sharedpersonalize.storageservice)(version&gt;=1.0.0)(!(version&gt;=2.0.0)))
      at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
      at com.host.personalize.bullseye.InitializeOSGiFramework.installAndStartBundle(InitializeOSGiFramework.java:217)
      at com.host.personalize.bullseye.InitializeOSGiFramework.getBundlesInformation(InitializeOSGiFramework.java:167)
      at com.host.personalize.bullseye.InitializeOSGiFramework$1.run(InitializeOSGiFramework.java:92)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:328)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:161)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:109)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:192)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:216)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
      at java.lang.Thread.run(Thread.java:736)
  </code></pre>
  
  <p>Let me tell you how I am doing it- I have launched an OSGi framework by following this <a href="http://njbartlett.name/2011/03/07/embedding-osgi.html" rel="noreferrer">tutorial</a> and it works fine, but as soon as I start the bundle, GoldeneyeModellingFramework-</p>
  
  <pre><code>    for (Bundle bundle : installedBundles) {
          bundle.start();
      }
  </code></pre>
  
  <p>And, I am using the dependency below in my main project which launches an OSGi framework/container:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
      &lt;artifactId&gt;org.apache.felix.framework&lt;/artifactId&gt;
      &lt;version&gt;4.2.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.ops4j.pax.url&lt;/groupId&gt;
      &lt;artifactId&gt;pax-url-mvn&lt;/artifactId&gt;
      &lt;version&gt;1.3.6&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>It always give me the above exception. The Bundle <code>GoldeneyeModellingFramework</code> depends on the maven project <code>GoldeneyeStorageService</code> which includes this package <code>com.host.domain.sharedpersonalize.storageservice</code>.</p>
  
  <p>Below is the <code>Manifest.MF</code> file for <code>GoldenModellingFramework</code> bundle:</p>
  
  <pre><code>Manifest-Version: 1.0
  Bnd-LastModified: 1377298131182
  Build-Jdk: 1.6.0_26
  Built-By: rjamal
  Bundle-Activator: com.host.personalize.goldeneye.framework.activator.Activator
  Bundle-Description: Managed dependencies and plugins across all Raptor applications.
  Bundle-ManifestVersion: 2
  Bundle-Name: GoldeneyeModellingFramework
  Bundle-SymbolicName: GoldeneyeModellingFramework
  Bundle-Version: 1.0.0
  Created-By: Apache Maven Bundle Plugin
  Export-Package: com.host.personalize.goldeneye.framework.activator;us
   es:="org.osgi.framework,com.host.personalize.goldeneye.modelling.fra
   mework,org.osgi.util.tracker";version="1.0.0",com.host.personalize.
   goldeneye.modelling.framework;uses:="com.host.soaframework.common.except
   ions,org.osgi.framework,com.host.domain.sharedpersonalize.storagese
   rvice";version="1.0.0"
  Import-Package: com.host.domain.sharedpersonalize.storageservice;ver
   sion="[1.0,2)",com.host.soaframework.common.exceptions;version="[1.4,2)
   ",org.osgi.framework;version="[1.6,2)",org.osgi.util.tracker;version="[
   1.5,2)"
  Originally-Created-By: Apache Maven Bundle Plugin
  ServicesURLStrategyVersion: 1.0.0-RELEASE
  Tool: Bnd-1.50.0
  X-Raptor-Source-Dir: S:\GitViews\GoldeneyeStream\GoldeneyeModellingFram
   ework/src/main/webapp,S:\GitViews\GoldeneyeStream\GoldeneyeModellingFr
   amework/src/main/resources,S:\GitViews\GoldeneyeStream\GoldeneyeModell
   ingFramework
  </code></pre>
  
  <p>And, below is the <code>pom.xml</code> file for <code>GoldeneyeModellingFramework</code> bundle:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  
      &lt;!-- POM Information about the Project --&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.host.personalize.goldeneye.modelling.framework&lt;/groupId&gt;
      &lt;artifactId&gt;GoldeneyeModellingFramework&lt;/artifactId&gt;
      &lt;version&gt;1.0.0&lt;/version&gt;
      &lt;!-- Packing Type is bundle for OSGI Library Bundle --&gt;
      &lt;packaging&gt;bundle&lt;/packaging&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;org.springframework.beans&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;org.springframework.context&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;org.springframework.core&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.servicemix.bundles&lt;/groupId&gt;
              &lt;artifactId&gt;org.apache.servicemix.bundles.cglib&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.osgi&lt;/groupId&gt;
              &lt;artifactId&gt;org.osgi.core&lt;/artifactId&gt;
              &lt;version&gt;4.3.0&lt;/version&gt;&lt;!--$NO-MVN-MAN-VER$ --&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.osgi&lt;/groupId&gt;
              &lt;artifactId&gt;org.osgi.compendium&lt;/artifactId&gt;
              &lt;version&gt;4.3.0&lt;/version&gt;&lt;!--$NO-MVN-MAN-VER$ --&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.host.personalize.goldeneye&lt;/groupId&gt;
              &lt;artifactId&gt;GoldeneyeStorageService&lt;/artifactId&gt;
              &lt;version&gt;1.0.0&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;!-- Build Configration --&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;!-- Apache Felix Bundle Plugin - For Generation of Manifest after Compile 
                  phase --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
                  &lt;!-- Configuration for generating the Manifest.mf --&gt;
                  &lt;configuration&gt;
                      &lt;manifestLocation&gt;src/main/resources/META-INF&lt;/manifestLocation&gt;
                      &lt;!-- Manifest Headers which need to customized during manifest generation --&gt;
                      &lt;instructions&gt;
                          &lt;Bundle-SymbolicName&gt;GoldeneyeModellingFramework&lt;/Bundle-SymbolicName&gt;
                          &lt;Bundle-Activator&gt;com.host.personalize.goldeneye.framework.activator.Activator&lt;/Bundle-Activator&gt;
                      &lt;/instructions&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
      &lt;!-- Configuration of repositories for dependency resolution --&gt;
      &lt;repositories&gt;
          &lt;!-- Raptor Bundles Repository --&gt;
          &lt;!-- This is needed to locate the Raptor Parent project. Other repositories 
              come from the parent. --&gt;
          &lt;repository&gt;
              &lt;id&gt;releases&lt;/id&gt;
              &lt;url&gt;http://nxraptor/content/repositories/releases/&lt;/url&gt;
              &lt;releases&gt;
              &lt;/releases&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;thirdparty&lt;/id&gt;
              &lt;url&gt;http://nxraptor/content/repositories/thirdparty/&lt;/url&gt;
              &lt;releases&gt;
              &lt;/releases&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Let me know if you need any other files for <code>GoldeneyeStorageService</code> maven project. I am not sure how to fix this problem. Can anyone help me with this?</p>
  
  <p><strong>Some Update:-</strong></p>
  
  <p>Below is the MANIFEST.MF file for <code>GoldeneyeStorageService</code> project-</p>
  
  <pre><code>Manifest-Version: 1.0
  Bnd-LastModified: 1377333824248
  Build-Jdk: 1.6.0_26
  Built-By: rjamal
  Bundle-Description: Managed dependencies and plugins across all Raptor a
   pplications.
  Bundle-ManifestVersion: 2
  Bundle-Name: GoldenlseyeStorageService
  Bundle-SymbolicName: GoldenlseyeStorageService
  Bundle-Version: 1.0.0
  Created-By: Apache Maven Bundle Plugin
  Export-Package: com.host.domain.sharedpersonalize.storageservice;use
   s:="com.host.soaframework.common.exceptions,com.host.marketplace.servic
   es.storageservice,com.host.personalize.services.storage.consumer.ge
   n,com.host.personalize.services.storage.consumer,com.host.soaframew
   ork.sif.service,com.host.marketplace.services,com.host.kernel.logger";v
   ersion="1.0.0",com.host.marketplace.services.storageservice;uses:="java
   x.xml.bind.annotation,com.host.marketplace.services,javax.activation";v
   ersion="1.0.0",com.host.personalize.services.storage.consumer;uses:
   ="javax.xml.ws,com.host.marketplace.services.storageservice";version="1
   .0.0",com.host.personalize.services.storage.consumer.gen;uses:="com
   .host.soaframework.common.exceptions,com.host.personalize.services.
   storage.consumer,com.host.soaframework.sif.impl.internal.service,com.eb
   ay.soaframework.sif.service,javax.xml.ws,com.host.marketplace.services.
   storageservice,com.host.soaframework.common.types,com.host.soaframework
   .common.impl.internal.schema,javax.xml.namespace,com.host.soaframework.
   common.registration";version="1.0.0"
  Import-Package: com.host.kernel.logger;version="[1.19,2)",com.host.marke
   tplace.services;version="[1.7,2)",com.host.soaframework.common.exceptio
   ns;version="[1.4,2)",com.host.soaframework.common.impl.internal.schema;
   version="[1.4,2)",com.host.soaframework.common.registration;version="[1
   .4,2)",com.host.soaframework.common.types;version="[1.4,2)",com.host.so
   aframework.sif.impl.internal.service;version="[1.4,2)",com.host.soafram
   ework.sif.service;version="[1.4,2)",javax.activation,javax.xml.bind.ann
   otation,javax.xml.namespace,javax.xml.ws
  ServicesURLStrategyVersion: 1.0.0-RELEASE
  Tool: Bnd-1.50.0
  X-Raptor-Source-Dir: S:\GitViews\GoldenlseyeStream\GoldenlseyeStorageServic
   e/src/main/webapp,S:\GitViews\GoldenlseyeStream\GoldenlseyeStorageService/
   src/main/resources,S:\GitViews\GoldenlseyeStream\GoldenlseyeStorageService
  </code></pre>