Re: Deploying route to Karaf fails with "waiting for dependencies"

2013-09-09 Thread Antonio Costa
ónio Jacob Costa http://www.trikorasolutions.com/ http://linkd.in/ajcin -- View this message in context: http://camel.465427.n5.nabble.com/Deploying-route-to-Karaf-fails-with-waiting-for-dependencies-tp5662144p5738947.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Deploying route to Karaf fails with "waiting for dependencies"

2013-09-09 Thread Claus Ibsen
> What do you mean with fix the route to use http4? > > Thank you in advance. > > > > - > > Best > regards, Cumprimentos, Un saludo, António > Jacob Costa > > http://www.trikorasolutions.com/ > > http://linkd.in/ajcin > -- > View this message i

Re: Deploying route to Karaf fails with "waiting for dependencies"

2013-09-09 Thread Antonio Costa
http://www.trikorasolutions.com/ http://linkd.in/ajcin -- View this message in context: http://camel.465427.n5.nabble.com/Deploying-route-to-Karaf-fails-with-waiting-for-dependencies-tp5662144p5738938.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Deploying route to Karaf fails with "waiting for dependencies"

2012-04-24 Thread Borut Bolčina
Yes, that is it! Installing camel-http instead of camel-http4 solved this dependency issue. Thanks Claus, you saved my day. -borut Dne 24. april 2012 16:17 je Claus Ibsen napisal/-a: > OSGi waits for the http component. > > You need to use the camel-http feature, and not camel-http4. > And/or

Re: Deploying route to Karaf fails with "waiting for dependencies"

2012-04-24 Thread Claus Ibsen
OSGi waits for the http component. You need to use the camel-http feature, and not camel-http4. And/or fix the route to use http4 if thats the one you want. On Tue, Apr 24, 2012 at 4:13 PM, Borut Bolčina wrote: > Hello, > > Despite my best efforts I can not get my Camel route to run in Karaf. >

Re: Deploying route to Karaf fails with "waiting for dependencies"

2012-04-24 Thread Jean-Baptiste Onofré
Hi Borut, I think that some Camel features are missing. Did you install camel-http feature ? karaf@root> features:install camel-http Regards JB On 04/24/2012 04:13 PM, Borut Bolčina wrote: Hello, Despite my best efforts I can not get my Camel route to run in Karaf. Log entry where route fa

Deploying route to Karaf fails with "waiting for dependencies"

2012-04-24 Thread Borut Bolčina
Hello, Despite my best efforts I can not get my Camel route to run in Karaf. Log entry where route fails to start: 2012-04-24 15:51:43,721 | INFO | rint Extender: 3 | BlueprintContainerImpl | container.BlueprintContainerImpl 321 | 10 - org.apache.aries.blueprint - 0.3.1 | Bundle weat

Re: Deploying route to Karaf

2012-04-13 Thread Christian Schneider
Blueprint is the easiest way. You can simply define a RouteBuilder bean in the camelcontext and then do the rest in java. I think though that it makes sense to provide an easy way to start camel using a simple Activator. So if it is not yet possible we should do that for one of the next releases

Re: Deploying route to Karaf

2012-04-13 Thread Borut Bolcina
But I did install the Camel feature, but it does not contain camel-core-osgi! So the only way to kickstart Camel in Karaf is by using blueprint? I do not want Spring or any XML configuration files, well blueprint seems inevitable. Regards, Borut Sent from my iPad On 13. apr. 2012, at 16:55, Cl

Re: Deploying route to Karaf

2012-04-13 Thread Claus Ibsen
Hi I suggest to install the camel feature, and not camel-core. By install camel feature, you get Camel support for Spring-DM and Blueprint. Then you should be able to install and start your bundle out of the box. If you use another Camel component such as FTP, Velocity etc. Then you need to insta

Re: Deploying route to Karaf

2012-04-13 Thread Borut Bolčina
I have added/modified some dependencies in my bundle to: org.osgi org.osgi.core 4.2.0 org.osgi org.osgi.compendium 4.2.0 This last one has a package which was reported missing in the Karaf console. and the build section in pom looks like: org.apache.felix maven-bundle-plugin 2.3.7

Re: Deploying route to Karaf

2012-04-13 Thread Borut Bolčina
I tried karaf@root> osgi:install mvn:org.apache.camel/camel-core-osgi/2.9.1 Bundle ID: 91 and then I get error by starting karaf@root> osgi:start 91 org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.camel.camel-core-osgi [91]: Unable to resolve 91.0: missing require

Re: Deploying route to Karaf

2012-04-13 Thread Borut Bolčina
inal Message- > From: Borut Bolčina > Date: Fri, 13 Apr 2012 12:33:26 > To: > Reply-To: > Subject: Re: Deploying route to Karaf > > OK, I installed the latest Karaf (2.2.6) and Camel features with > > features:chooseurl camel 2.9.1 > > > features:instal

Re: Deploying route to Karaf

2012-04-13 Thread Christian Schneider
As far as I know the camel.core.osgi package is not exported. In fact the osgi stuff in camel core looks quite strange as it works with fragment bundles where it could be much simpler. So I am not sure if this will work. You can try require bundle instead of import package so you might get the

Re: Deploying route to Karaf

2012-04-13 Thread Omar Atia
, 13 Apr 2012 12:33:26 To: Reply-To: Subject: Re: Deploying route to Karaf OK, I installed the latest Karaf (2.2.6) and Camel features with features:chooseurl camel 2.9.1 features:install camel-core Then I installed my bundle into the local maven repo and then to Karaf with karaf@root

Re: Deploying route to Karaf

2012-04-13 Thread Borut Bolčina
OK, I installed the latest Karaf (2.2.6) and Camel features with features:chooseurl camel 2.9.1 features:install camel-core Then I installed my bundle into the local maven repo and then to Karaf with karaf@root> osgi:install mvn:com.mycompany/route-weather-current/1.0-SNAPSHOT Bundle ID: 67

Re: Deploying route to Karaf

2012-04-11 Thread Claus Ibsen
> The blueprint.xml file is then placed in the META-INF/blueprint > directory. The standard place for that. Ah sorry I think its OSGI-INF/blueprint/blueprint.xml The name of the XML file dont have to be blueprint.xml. I think you can name it myapp.xml, camel.xml, etc. Or what you like. Anyway th

Re: Deploying route to Karaf

2012-04-11 Thread Claus Ibsen
On Wed, Apr 11, 2012 at 10:24 AM, Borut Bolčina wrote: > Dne 11. april 2012 09:54 je Claus Ibsen napisal/-a: > >> On Wed, Apr 11, 2012 at 9:43 AM, Borut Bolčina >> wrote: >> > Thanks for the answers and guidelines Claus. >> > >> > I looked into the ServiceMix, but the project seems so abandoned,

Re: Deploying route to Karaf

2012-04-11 Thread Borut Bolčina
Dne 11. april 2012 09:54 je Claus Ibsen napisal/-a: > On Wed, Apr 11, 2012 at 9:43 AM, Borut Bolčina > wrote: > > Thanks for the answers and guidelines Claus. > > > > I looked into the ServiceMix, but the project seems so abandoned, I > decided > > not to use it. I read some discussions on the u

Re: Deploying route to Karaf

2012-04-11 Thread Claus Ibsen
On Wed, Apr 11, 2012 at 9:43 AM, Borut Bolčina wrote: > Thanks for the answers and guidelines Claus. > > I looked into the ServiceMix, but the project seems so abandoned, I decided > not to use it. I read some discussions on the user and dev lists which gave > the impression that ServiceMix has no

Re: Deploying route to Karaf

2012-04-11 Thread Borut Bolčina
Thanks for the answers and guidelines Claus. I looked into the ServiceMix, but the project seems so abandoned, I decided not to use it. I read some discussions on the user and dev lists which gave the impression that ServiceMix has no certain future. Plus, you are bound to use older versions of Ka

Re: Deploying route to Karaf

2012-04-11 Thread Claus Ibsen
On Wed, Apr 11, 2012 at 8:32 AM, Borut Bolčina wrote: > So instead of > >   > org.apache.camel >  camel-core > ${camel-version} >   > > I use camel-core-osgi and use the OsgiDefaultCamelContext instead and I > should be safe? > >  public void start(BundleContext context) throws Exception { > camel

Re: Deploying route to Karaf

2012-04-10 Thread Borut Bolčina
So instead of org.apache.camel camel-core ${camel-version} I use camel-core-osgi and use the OsgiDefaultCamelContext instead and I should be safe? public void start(BundleContext context) throws Exception { camelContext = new OsgiDefaultCamelContext(context); ... } Will this enable me to

Re: Deploying route to Karaf

2012-04-10 Thread Claus Ibsen
Hi Yeah that is how this can be done with OSGi APIs. You may want to use the camel-core-osgi JAR and use the OsgiDefaultCamelContext as the CamelContext instance. That one knows about the OSGi runtime. Otherwise you may run in trouble. On Tue, Apr 10, 2012 at 3:02 PM, Borut Bolčina wrote: > He

Deploying route to Karaf

2012-04-10 Thread Borut Bolčina
Hello, I was wondering if I am going down the right path. My goal is to deploy a simple Camel route to an OSGI container, but without the Spring "startup code". The route: public class WeatherCurrentRouteBuilder extends RouteBuilder { public void configure() { ... } } and to start and stop the