title: Beginner starting large OSGi migration - osgi.wiring.package=android.dalvik?
body: <p>I have a large Java application that's mostly networking and file processing with lots of DB access. There's no UI. We expose a few web services (embedded Netty) and call some external rest web services. The project is built with Ant. It's about 10 different jars plus maybe 30-40 libraries.</p>
  
  <p>My current task is to move the project to the OSGi framework. I am startling slowly.</p>
  
  <p>Following the examples in "OSGi In Action" chapter 6, I have used the BND ant task to put the entire project into one huge jar file. This worked. I am able to run the program using java -jar. Here's my current .bnd file:</p>
  
  <pre><code>-output: bundle/MerchantServicesBundle.jar
  -include: manifest/merchantservices.manifest
  Bundle-Name: MerchantServices
  Bundle-SymbolicName: com.shopping.services.merchant
  Bundle-Version: 4.1
  Main-Class: com.shopping.merchant.services.netty.MerchantServices
  Class-Path: /home/ppantera/repositories/MerchantJava/modules/MerchantServices/conf/
  
  Private-Package: *
  </code></pre>
  
  <p>I am using Apache Felix 4.0.3. From the Gogo shell I can install the bundle but when I start it I get this:</p>
  
  <p>org.osgi.framework.BundleException: Unresolved constraint in bundle com.shopping.services.merchant [8]: Unable to resolve 8.0: missing requirement [8.0] osgi.wiring.package; (osgi.wiring.package=android.dalvik)</p>
  
  <p>Why does Felix think this is an Android project?</p>
  
  <p>There doesn't seem to be much about this on the 'net. Would you recommend using an older version of Felix so I'm sheltered from the newer OSGi features that could cause me confusion?</p>
  
  <p>I tried adding this to my .bnd file:</p>
  
  <p>Require-Capability: osgi.ee; filter:="(&amp;(osgi.ee=JavaSE)(version>=1.7))"</p>
  
  <p>That didn't help. What am I doing wrong? Any other pointers?</p>