title: Package uses conflict: Import-Package with jasperreports
body: <p>I have the common "use conflict" problem in OSGi, I am new to OSGi so sorry if this is very simple. I have read <a href="https://stackoverflow.com/questions/5504113/package-uses-conflict-import-package-on-startup-of-a-bundle">this</a> and <a href="https://stackoverflow.com/questions/3466379/package-uses-conflict-import-package-de-foo-bar-version-0-0-0">this other</a> questions. I have also read <a href="http://blog.springsource.org/2008/11/22/diagnosing-osgi-uses-conflicts/" rel="nofollow noreferrer">this</a> which explains in more detail how to debug these problems; yet, i can't figure it out. I can't find the duplicated export (quoting that last article "There must always be more than one supplier for you to see a uses constraint violation.")</p>
  
  <p>This is the full error</p>
  
  <pre><code>initial@reference:file:../../Dev/mine/target/dependency/jasperreports-3.7.1-osgi.jar [151]
    Package uses conflict: Import-Package: org.apache.commons.collections.comparators; version="0.0.0"
  </code></pre>
  
  <p>Here is the relevant snippet of the jasper manifest. It is too long to paste completely</p>
  
  <pre><code>Export-Package: ...,net.sf.jasperreports.crosstabs.fill.calculation;uses:="org.apache.commons.collections,net.sf.jasperreports.engine,org.apache.commons.collections.comparators,org.apache.commons.logging,..."
  </code></pre>
  
  <p>And here is the output of <code>packages org.apache.commons.collections.comparators</code> to show that the package is exported correctly and only once</p>
  
  <pre><code>osgi&gt; packages org.apache.commons.collections.comparators
  org.apache.commons.collections.comparators; version="3.2.0"&lt;org.apache.commons.collections_3.2.0 [869]&gt;
  </code></pre>
  
  <p>Any ideas? something else i could try? I really doubt this but, is equinox complaining that the exported version is 3.2.0 but the <code>uses</code> version is 0.0.0?</p>