Hi Are you sure you are using Camel 1.4.0, that is a very old release. Camel 1.x is End Of Life, and we do not support it anymore.
For installing Camel in OSGi, then if you use Apache SerivceMix / Apache Karaf, then you can use its features to install which is much easier. Basically just run this command features:install camel-http On Wed, Oct 5, 2011 at 1:16 PM, narita bagchi <narita-bag...@indiatimes.com> wrote: > Hi, > > 1) I have to use camel-http component. > 2) I added the following dependencies in the POM file. > > <dependency> > <groupId>org.apache.camel</groupId> > <artifactId>camel-http</artifactId> > <version>1.4.0</version> > <!-- use the same version as your Camel core version --> > </dependency> > > > 3) I started getting Unresolved package error for > "package=org.apache.commons.httpclient" at Runtime. > 4) So I have added the dependency for commons-httpclient. > > <dependency> > <groupId>commons-httpclient</groupId> > <artifactId>commons-httpclient</artifactId> > <version>3.1</version> > </dependency> > > I added it in embedded-dependency because commons-httpclient is a non-osgi > jar. > 5) I am still getting the same error. > 6) I also tried adding the packages under Import-Package tag. > > Note - 1) I can see the dependencies getting reflected under Import-Package, > in the generated MANIFEST file of my bundle jar. 2)Camel verison used is 1.5 > > Thanks. > Regards, > Narita > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/