title: Package uses conflict: Import-Package on startup of a bundle
body: <p>I am getting the following error when trying to install the htmlunit bundle:</p>
  
  <pre><code>com.springsource.com.gargoylesoftware.htmlunit_2.6.0 [370] could not be resolved.
    Reason: Package uses conflict: 
    Import-Package: org.apache.commons.logging.impl; version="1.1.1"
  </code></pre>
  
  <p>I have followed the diagnostic procedure for this type of problem on <a href="http://blog.springsource.com/2008/11/22/diagnosing-osgi-uses-conflicts/" rel="nofollow noreferrer">this blog</a>.</p>
  
  <p>And here are my findings:
  The bundle <code>com.springsource.com.gargoylesoftware.htmlunit_2.6.0</code> has the following instructions:</p>
  
  <pre><code>Import-Package: \
    org.apache.commons.logging;version="[1.1.1, 2.0.0)",\
    org.apache.commons.logging.impl;version="[1.1.1, 2.0.0)"
  </code></pre>
  
  <p>The only bundle that has this in its use constraint in my OSGi is <code>com.springsource.org.apache.commons.logging</code>, which has these instructions:</p>
  
  <pre><code>Export-Package: \
    org.apache.commons.logging;version="1.1.1",\
    org.apache.commons.logging.impl;version="1.1.1";\
      uses:="javax.servlet,
             org.apache.avalon.framework.logger,
             org.apache.commons.logging,
             org.apache.log,
             org.apache.log4j"
  
  Import-Package: \
    javax.servlet;version="[2.1.0, 3.0.0)";resolution:=optional,\
    org.apache.avalon.framework.logger;version="[4.1.3, 4.1.3]";resolution:=optional,\
    org.apache.log;version="[1.0.1, 1.0.1]";resolution:=optional,\
    org.apache.log4j;version="[1.2.15, 2.0.0)";resolution:=optional   
  </code></pre>
  
  <p>At this point I am stuck as I can't figure out what the problem is and how to resolve it although from what I provided above it should be clear, but not to me :(</p>
  
  <p>Any ideas...?</p>