title: OSGI bundle error: Unresolved package in bundle 73:package=org.apache.commons.httpclient
body: <ol>
  <li>I have to use camel-http component.</li>
  <li>I added the dependencies in the POM file. (Code Listing 1)   </li>
  <li>I started getting <strong>Unresolved package error</strong>  for
  "package=org.apache.commons.httpclient" at <strong>Runtime</strong>.</li>
  <li>So I have added the dependency for commons-httpclient (Code Listing 2). I added it in embedded-dependency because commons-httpclient is a non-osgi jar.</li>
  <li>I am still getting the same error.</li>
  <li>I also tried adding this package in  tag.</li>
  </ol>
  
  <p><strong>Note</strong> - I can see the dependencies getting reflected under Import-Package, in the generated MANIFEST file of my bundle jar. </p>
  
  <p>Code Listing 1:</p>
  
  <pre><code>    &lt;dependency&gt;
        &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
        &lt;artifactId&gt;camel-http&lt;/artifactId&gt;
        &lt;version&gt;${camel-version}&lt;/version&gt;
        &lt;!-- use the same version as your Camel core version --&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Code Listing 2:</p>
  
  <pre><code>    &lt;dependency&gt;
        &lt;groupId&gt;commons-httpclient&lt;/groupId&gt;
        &lt;artifactId&gt;commons-httpclient&lt;/artifactId&gt;
        &lt;version&gt;3.1&lt;/version&gt;            
      &lt;/dependency&gt;
  </code></pre>