title: Felix bundles failng to load
body: <p>I am attempting to run an application on Apache Felix, using the Felix Dependency bundles. The container is, for some reason, not loading my bundles.</p>
  
  <p>I am doing my development using Bndtools in Eclipse. I am using the Amdatu bundles.</p>
  
  <p>The bundles I am concerned about are the bundles that are in my "Run Requirements":</p>
  
  <pre><code>org.apache.felix.dependencymanager
  org.apache.felix.dependencymanager.shell
  org.apache.felix.dependencymanager.runtime
  osgi.core
  osgi.cmpn
  </code></pre>
  
  <p>All of the above bundles are taken from the Amdatu repository.</p>
  
  <p>I have two bundles which I created:</p>
  
  <pre><code>com.test.demo.reader
  com.test.demo.listener
  </code></pre>
  
  <p>And these bundles are built using org.apache.felix.dependencymanager and osgi.core.</p>
  
  <p>When I attempt to run OSGi, I am getting the following failures:</p>
  
  <pre><code>! could not resolve the bundles: [com.test.demo.reader-1.0.0 Unresolved constraint in bundle 
  com.test.demo.reader [8]: Unable to resolve 8.0: missing requirement 
  [8.0] osgi.wiring.package; (&amp;(osgi.wiring.package=org.apache.felix.dm)(version&gt;=3.0.0)(!(version&gt;=4.0.0))),
  com.test.demo.listener-1.0.0 Unresolved constraint in bundle com.test.demo.listener [9]:
  Unable to resolve 9.0: missing requirement [9.0] osgi.wiring.package; 
  (&amp;(osgi.wiring.package=com.test.demo.reader)(version&gt;=1.0.0)(!(version&gt;=2.0.0))) 
  [caused by: Unable to resolve 8.0: missing requirement [8.0] osgi.wiring.package; 
  (&amp;(osgi.wiring.package=org.apache.felix.dm)(version&gt;=3.0.0)(!(version&gt;=4.0.0)))]]
  </code></pre>
  
  <p>and</p>
  
  <pre><code>! Failed to start bundle com.test.demo.reader-1.0.0, exception Unresolved constraint in
  bundle com.test.demo.reader [8]: Unable to resolve 8.0: missing requirement [8.0] 
  osgi.wiring.package; (&amp;(osgi.wiring.package=org.apache.felix.dm)(version&gt;=3.0.0)
  (!(version&gt;=4.0.0)))
  </code></pre>
  
  <p>and more</p>
  
  <pre><code>! Failed to start bundle com.test.demo.listener-1.0.0, exception Unresolved constraint in 
  bundle com.test.demo.listener [9]: Unable to resolve 9.0: 
  missing requirement [9.0] osgi.wiring.package; (&amp;(osgi.wiring.package=com.test.demo.reader)
  (version&gt;=1.0.0)(!(version&gt;=2.0.0))) [caused by: Unable to resolve 8.0: missing requirement 
  [8.0] osgi.wiring.package; (&amp;(osgi.wiring.package=org.apache.felix.dm)(version&gt;=3.0.0)
  (!(version&gt;=4.0.0)))]
  </code></pre>
  
  <p>I think I understand what is happening: apparently the org.apache.dm package being used is a version that is somehow incompatible with my bundles. But that doesn't make any sense, because according to the Felix documentation the org.apache.dm package is in the org.apache.felix.dependencymanager bundle. That bundle is from the Amdatu repository and it is the only version of the bundle I am using with my application! How is the version incompatible with my bundles when theirs is the only version that my bundles know about???</p>
  
  <p>Someone please advise. What is causing this failure an how can I fix it?</p>