Hi Can you share your pom and blueprint xml ?
You can find example on my GitHub about camel with blueprint. Regards JB Le 16 oct. 2018 à 21:45, à 21:45, "John F. Berry" <bohnje...@yahoo.com> a écrit: >Thanks Francois for the info. Now I will show my shallow knowledge of >Karaf (or this Apache family for that matter).. >What is the "bundle" that you drop in the deploy folder.. is it the >entire project with all its directories? >I haven't successfully made this a blueprint camel project yet.. I make >a blank one and cannot get it to install without an error (before I >modify it): > >[ Blueprint Extender: 1] BlueprintContainerImpl INFO >Blueprint bundle org.apache.aries.blueprint.core/1.10.0 has been >started >[ Blueprint Extender: 2] BlueprintContainerImpl ERROR >Unable to start container for blueprint bundle >org.apache.camel.camel-blueprint/2.22.1 >org.osgi.service.blueprint.container.ComponentDefinitionException: >Unable to instantiate components > >________________________________ > >From: Francois Papon <francois.pa...@openobject.fr> >To: user@karaf.apache.org >Sent: Tuesday, October 16, 2018 3:18 PM >Subject: Re: Running Camel in a Karaf OSGi container > > > >Hi John, >Have you install the camel feature in Karaf ? >In a Karaf shell : > >karaf@root()> feature:repo-add camel >karaf@root()> feature:install camel >If your are using blueprint with Karaf 4.2.x : >karaf@root()> feature:install aries-blueprint > >Then just drop your bundle into the "deploy" folder. > >It would be nice if you can share your creation ;) >regards, > >François Papon fpa...@apache.org >Le 16/10/2018 à 22:54, John F. Berry a écrit : > >New user to Karaf due to the fact that my development work in Apache >Camel is wanted by people to be installed on a Windows server and to be >installed as a service. This led me to the Karaf product. >I've asked the Camel users forum about migration steps, but now I think >this is more of a Karaf and/or maven deployment thing than a Camel >issue. >I have developed a route in Camel using maven and hand writing > a Java DSL route (no Eclipse or other tool). I can run the > jar as a standalone execution fine from a command line. >I did create a OSGi service wrapper in karaf and did have a > window service instance installed. >I just cannot seem to get Karaf to "deploy" it (a.k.a. pick up > and run with it under that OSGi container that is running. >Sorry for the generalities, new to the open source community > and the idea that you need to be fully immersed in every > Apache offering (Camel, Maven, Felix, ServiceMix, Karaf, > etc.) to utilize any one of them :P I have felix and > blueprint dependencies in my POM.. but they been through many > different forms in an attempt to run it. It is a Java DSL > Camel archetype that has been built, but cannot seem to > generate supporting files for Karaf to recognize my little > creation. >Ideas? >Later I attempted to make an "empty" project with maven selecting >"org.apache.camel.archetypes:camel-archetype-blueprint", but I cannot >even get that base package to run (the small Hello World code) without >java blowing up. The one I built, compiled, ran, tested and "jar"ed >was from the "org.apache.camel.archetypes:camel-archetype-java" maven >archetype skeleton. I attempted to merge the two.. but no luck so far! > >Thanks!