title: OSGi bundle not started : missing requirement osgi.wiring.package; > &(osgi.wiring.package=org.apache.felix.dm)
body: <p>I have been trying to follow 'Building Modular Cloud Apps with OSGi'. In chapter 3 of the book 'Creating the first OSGi application' the author describes how to create a simple OSGi application with a service in eclipse with bndtools.</p>
  
  <p>Below is the screenshot of my classes and configurations.</p>
  
  <p><img src="https://i.stack.imgur.com/JXnWS.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/pCMsI.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/IxbI2.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/uwEPB.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/BMcM2.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/zY2Uu.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/jejf9.png" alt="enter image description here"></p>
  
  <p>The problem I am facing is </p>
  
  <blockquote>
    <p>'! could not resolve the bundles:
    [agenda.service.simple-0.0.1Unresolved constraint in bundle
    agenda.service.simple [9]: Unable to resolve 9.0: missing requirement
    [9.0] osgi.wiring.package;
    (&amp;(osgi.wiring.package=org.apache.felix.dm)(version>=3.0.0)(!(version>=4.0.0)))</p>
    
    <p>] ! Failed to start bundle agenda.service.simple-0.0.1, exception
    Unresolved constraint in bundle agenda.service.simple [9]: Unable to
    resolve 9.0: missing requirement [9.0] osgi.wiring.package;
    (&amp;(osgi.wiring.package=org.apache.felix.dm)(version>=3.0.0)(!(version>=4.0.0)))
    ____________________________'</p>
  </blockquote>
  
  <p>Also, when i try to issue a command in the gogo shell that also doesnt input corretly sometimes. But eventually when it does the bundle status looks like</p>
  
  <blockquote>
    <p>g! lb gogo: CommandNotFoundException: Command not found: b</p>
    
    <p>g! lb gogo: CommandNotFoundException: Command not found: llb </p>
    
    <p>g!  </p>
    
    <p>g!  </p>
    
    <p>g!  </p>
    
    <p>g!  </p>
    
    <p>g! </p>
    
    <p>g! </p>
    
    <p>lb START LEVEL 1    ID|State      |Level|Name</p>
  
  <pre><code>0|Active     |    0|System Bundle (4.0.3)
  
  1|Active     |    1|Apache Felix Dependency Manager (4.0.1)
  
  2|Active     |    1|Apache Felix Dependency Manager Shell (4.0.1)
  
  3|Active     |    1|Apache Felix Gogo Command (0.14.0)
  
  4|Active     |    1|Apache Felix Gogo Runtime (0.10.0)
  
  5|Active     |    1|Apache Felix Gogo Runtime (0.12.1)
  
  6|Active     |    1|Apache Felix Gogo Shell (0.10.0)
  
  7|Active     |    1|osgi.cmpn (5.0.0.201305092017)
  
  8|Active     |    1|agenda.api (0.0.0.201505171119)
  
  9|Installed  |    1|agenda.service.simple (0.0.1)
  </code></pre>
  </blockquote>