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 <claus.ib...@gmail.com> napisal/-a: > 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 <borut.bolc...@gmail.com> > wrote: > > 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 weather-current-routes is waiting for dependencies > > [(&(component=http)(objectClass=org.apache.camel.spi.ComponentResolver))] > > > > My route: > > > > from("quartz://weather/currentWeatherSlovenia?cron=0+0/1+*+?+*+*") > > .log("Getting weather from: " + sourceUrl) > > .to(sourceUrl) > > .split() > > .tokenizeXML("metData") > > .unmarshal(jaxbDataFormat) > > .to("jpa: > > my.company.weather.entities.WeatherCurrent?persistenceUnit=weather"); > > > > The route should periodically get some XML from configured url via http > and > > store some entries into the database using jpa component. I am using the > > latest Karaf (2.2.6). I have created my custom feature project: > > > > <feature name="weather" version="${pom.version}"> > > <feature>camel-core</feature> > > <feature>camel-blueprint</feature> > > <feature>camel-jaxb</feature> > > <feature>camel-bean-validator</feature> > > <feature>camel-jpa</feature> > > <feature>camel-quartz</feature> > > <feature>camel-http4</feature> > > <feature>transaction</feature> > > <feature>jpa</feature> > > <feature>http</feature> > > > <bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.9.0</bundle> > > <bundle>mvn:mysql/mysql-connector-java/5.1.18</bundle> > > <bundle>mvn:my.company/weather-datasource/${pom.version}</bundle> > > <bundle>mvn:my.company /weather-current-routes/${pom.version}</bundle> > > <configfile > > > finalname="/etc/weather.cfg">mvn:my.company/weather/${pom.version}/cfg</configfile> > > </feature> > > > > After clean Karaf install I first install Camel with > > features:chooseurl camel 2.9.2 > > > > then I install my Weather feature > > features:addUrl mvn:my.company/weather/1.0.5-SNAPSHOT/xml/features > > features:install -v weather > > > > and the result is my route is not started (it enters grace period) and > then > > (after 5 mins) the log says: > > > > 2012-04-24 15:56:43,558 | INFO | rint Extender: 2 | > BlueprintCamelContext > > | e.camel.impl.DefaultCamelContext 1540 | 64 - > > org.apache.camel.camel-core - 2.9.2 | > > Apache Camel 2.9.2 (CamelContext: weather-forecast) is shutting down > > 2012-04-24 15:56:43,558 | INFO | rint Extender: 2 | > > DefaultShutdownStrategy | mel.impl.DefaultShutdownStrategy 130 > | > > 64 - org.apache.camel.camel-core - 2.9.2 | > > Starting to graceful shutdown 0 routes (timeout 300 seconds) > > 2012-04-24 15:56:43,558 | INFO | rint Extender: 2 | > > DefaultShutdownStrategy | mel.impl.DefaultShutdownStrategy 171 > | > > 64 - org.apache.camel.camel-core - 2.9.2 | > > Graceful shutdown of 0 routes completed in 0 seconds > > 2012-04-24 15:56:43,558 | INFO | rint Extender: 2 | > BlueprintCamelContext > > | e.camel.impl.DefaultCamelContext 1599 | 64 - > > org.apache.camel.camel-core - 2.9.2 | > > Uptime: not started > > 2012-04-24 15:56:43,558 | INFO | rint Extender: 2 | > BlueprintCamelContext > > | e.camel.impl.DefaultCamelContext 1600 | 64 - > > org.apache.camel.camel-core - 2.9.2 | > > Apache Camel 2.9.2 (CamelContext: weather-forecast) is shutdown in 0.000 > > seconds > > 2012-04-24 15:56:43,568 | ERROR | rint Extender: 2 | > BlueprintContainerImpl > > | ntainer.BlueprintContainerImpl$1 293 | 10 - > > org.apache.aries.blueprint - 0.3.1 | > > Unable to start blueprint container for bundle weather-current-routes due > > to unresolved dependencies > > [(&(component=http)(objectClass=org.apache.camel.spi.ComponentResolve > > r))] > > java.util.concurrent.TimeoutException > > > > This are installed bundles: > > > > karaf@root> osgi:list -t 10 > > START LEVEL 100 , List Threshold: 10 > > ID State Blueprint Level Name > > [ 5] [Active ] [ ] [ 10] Apache Felix Configuration > > Admin Service (1.2.8) > > [ 6] [Active ] [ ] [ 11] Apache Felix File Install > > (3.2.0) > > [ 7] [Active ] [ ] [ 20] Apache Aries Proxy Bundle > > (0.3.0) > > [ 8] [Active ] [ ] [ 20] Apache ServiceMix :: Bundles > :: > > asm (3.3.1.1) > > [ 9] [Active ] [ ] [ 20] Apache Aries Util (0.3.0) > > [ 10] [Active ] [Created ] [ 20] Apache Aries Blueprint Bundle > > (0.3.1) > > [ 11] [Active ] [Created ] [ 28] Apache Karaf :: Deployer :: > > Spring (2.2.6) > > [ 12] [Active ] [Created ] [ 28] Apache Karaf :: Deployer :: > > Blueprint (2.2.6) > > [ 13] [Active ] [Created ] [ 30] Apache Karaf :: Jaas :: > Command > > (2.2.6) > > [ 14] [Active ] [Created ] [ 30] Apache Karaf :: Shell :: SSH > > (2.2.6) > > [ 15] [Active ] [Created ] [ 30] Apache Karaf :: Admin :: > > Management (2.2.6) > > [ 16] [Active ] [ ] [ 30] Apache Aries JMX Core (0.3.0) > > [ 17] [Active ] [Created ] [ 30] Apache Karaf :: JAAS :: > Modules > > (2.2.6) > > [ 18] [Active ] [Created ] [ 30] Apache Karaf :: Diagnostic :: > > Management (2.2.6) > > [ 19] [Active ] [Created ] [ 30] Apache Karaf :: Shell :: > > Various Commands (2.2.6) > > [ 20] [Active ] [Created ] [ 30] Apache Karaf :: Shell :: Log > > Commands (2.2.6) > > [ 21] [Active ] [Created ] [ 30] Apache Karaf :: Shell :: OSGi > > Commands (2.2.6) > > [ 22] [Active ] [ ] [ 30] Apache Mina SSHD :: Core > (0.5.0) > > [ 23] [Active ] [Created ] [ 30] Apache Karaf :: Deployer :: > > Karaf Archive (.kar) (2.2.6) > > [ 24] [Active ] [ ] [ 30] Apache Karaf :: Diagnostic :: > > Core (2.2.6) > > [ 25] [Active ] [ ] [ 30] Apache Aries JMX Blueprint > > Bundle (0.3.0) > > [ 26] [Active ] [Created ] [ 30] Apache Karaf :: Admin :: Core > > (2.2.6) > > [ 27] [Active ] [Created ] [ 30] Apache Karaf :: Management > > (2.2.6) > > [ 28] [Active ] [ ] [ 30] Apache Aries JMX API (0.3.0) > > [ 29] [Active ] [Created ] [ 30] Apache Karaf :: Shell :: > > Console (2.2.6) > > [ 30] [Active ] [Created ] [ 30] Apache Karaf :: Features :: > > Command (2.2.6) > > [ 31] [Active ] [Created ] [ 30] Apache Karaf :: Shell :: > > Development Commands (2.2.6) > > [ 32] [Active ] [Created ] [ 30] Apache Karaf :: Features :: > > Management (2.2.6) > > [ 33] [Active ] [Created ] [ 30] Apache Karaf :: Features :: > > Core (2.2.6) > > [ 34] [Active ] [ ] [ 30] Apache MINA Core (2.0.1) > > [ 35] [Active ] [Created ] [ 30] Apache Karaf :: Diagnostic :: > > Command (2.2.6) > > [ 36] [Active ] [Created ] [ 30] Apache Karaf :: Deployer :: > > Wrap Non OSGi Jar (2.2.6) > > [ 37] [Active ] [Created ] [ 30] Apache Karaf :: JAAS :: > Config > > (2.2.6) > > [ 38] [Active ] [Created ] [ 30] Apache Karaf :: Deployer :: > > Features (2.2.6) > > [ 39] [Active ] [Created ] [ 30] Apache Karaf :: Shell :: > > PackageAdmin Commands (2.2.6) > > [ 40] [Active ] [Created ] [ 30] Apache Karaf :: Diagnostic :: > > Common (2.2.6) > > [ 41] [Active ] [Created ] [ 30] Apache Karaf :: Admin :: > > Command (2.2.6) > > [ 42] [Active ] [Created ] [ 30] Apache Karaf :: Shell :: > > ConfigAdmin Commands (2.2.6) > > [ 43] [Active ] [Created ] [ 30] Apache Karaf :: Management :: > > MBeans :: System (2.2.6) > > [ 44] [Active ] [Created ] [ 30] Apache Karaf :: Management :: > > MBeans :: Bundles (2.2.6) > > [ 45] [Active ] [Created ] [ 30] Apache Karaf :: Management :: > > MBeans :: Services (2.2.6) > > [ 46] [Active ] [Created ] [ 30] Apache Karaf :: Management :: > > MBeans :: Config (2.2.6) > > [ 47] [Active ] [Created ] [ 30] Apache Karaf :: Management :: > > MBeans :: Log (2.2.6) > > [ 48] [Active ] [Created ] [ 30] Apache Karaf :: Management :: > > MBeans :: Packages (2.2.6) > > [ 49] [Active ] [Created ] [ 30] Apache Karaf :: Management :: > > MBeans :: Dev (2.2.6) > > [ 50] [Active ] [ ] [ 30] Apache ServiceMix :: Bundles > :: > > aopalliance (1.0.0.5) > > [ 51] [Active ] [ ] [ 30] Spring Core (3.0.7.RELEASE) > > [ 52] [Active ] [ ] [ 30] Spring ASM (3.0.7.RELEASE) > > [ 53] [Active ] [ ] [ 30] Spring Expression Language > > (3.0.7.RELEASE) > > [ 54] [Active ] [ ] [ 30] Spring Beans (3.0.7.RELEASE) > > [ 55] [Active ] [ ] [ 30] Spring AOP (3.0.7.RELEASE) > > [ 56] [Active ] [ ] [ 30] Spring Context > (3.0.7.RELEASE) > > [ 57] [Active ] [ ] [ 30] Spring Context Support > > (3.0.7.RELEASE) > > [ 58] [Active ] [ ] [ 10] Apache ServiceMix :: Specs :: > > Activation API 1.4 (1.9.0) > > [ 59] [Active ] [ ] [ 10] Apache ServiceMix :: Specs :: > > Stax API 1.0 (1.9.0) > > [ 60] [Active ] [ ] [ 10] Apache ServiceMix :: Specs :: > > JAXB API 2.2 (1.9.0) > > [ 61] [Active ] [ ] [ 10] Stax2 API (3.1.1) > > [ 62] [Active ] [ ] [ 10] Woodstox XML-processor > (4.1.2) > > [ 63] [Active ] [ ] [ 10] Apache ServiceMix :: Bundles > :: > > jaxb-impl (2.2.1.1_2) > > [ 64] [Active ] [ ] [ 50] camel-core (2.9.2) > > [ 65] [Active ] [Created ] [ 50] camel-karaf-commands (2.9.2) > > [ 66] [Active ] [Created ] [ 50] camel-blueprint (2.9.2) > > [ 67] [Active ] [ ] [ 50] camel-jaxb (2.9.2) > > [ 68] [Active ] [ ] [ 50] Apache ServiceMix :: Specs :: > > JSR-303 API 1.0.0 (1.9.0) > > [ 69] [Active ] [ ] [ 50] Apache ServiceMix :: Specs :: > > Scripting API 1.0 (1.9.0) > > [ 70] [Active ] [ ] [ 50] Apache ServiceMix :: Bundles > :: > > hibernate-validator (4.1.0.Final_3) > > [ 71] [Active ] [ ] [ 50] camel-bean-validator (2.9.2) > > [ 72] [Active ] [ ] [ 30] Spring Transaction > > (3.0.7.RELEASE) > > [ 73] [Active ] [ ] [ 30] Spring JDBC (3.0.7.RELEASE) > > [ 74] [Active ] [ ] [ 30] Spring ORM (3.0.7.RELEASE) > > [ 75] [Active ] [ ] [ 50] geronimo-annotation_1.0_spec > > (1.1.1) > > [ 76] [Active ] [ ] [ 50] Apache Geronimo JSR-317 JPA > 2.0 > > Spec API (1.1) > > [ 77] [Active ] [ ] [ 50] geronimo-el_1.0_spec (1.0.1) > > [ 78] [Active ] [ ] [ 50] geronimo-jta_1.1_spec (1.1.1) > > [ 79] [Active ] [ ] [ 50] Commons Lang (2.6) > > [ 80] [Active ] [ ] [ 50] Commons Collections (3.2.1) > > [ 81] [Active ] [ ] [ 50] Commons Pool (1.5.6) > > [ 82] [Active ] [ ] [ 50] Apache ServiceMix :: Bundles > :: > > commons-dbcp (1.4.0.2) > > [ 83] [Active ] [ ] [ 50] Apache ServiceMix :: Bundles > :: > > ant (1.7.0.6) > > [ 84] [Active ] [ ] [ 50] Apache ServiceMix :: Bundles > :: > > serp (1.13.1.4) > > [ 85] [Active ] [ ] [ 50] geronimo-jms_1.1_spec (1.1.1) > > [ 86] [Active ] [ ] [ 50] OpenJPA Aggregate Jar (2.1.1) > > [ 87] [Active ] [ ] [ 50] camel-jpa (2.9.2) > > [ 88] [Active ] [ ] [ 50] Apache ServiceMix Bundles: > > commons-beanutils-1.7.0 (1.7.0.3) > > [ 89] [Active ] [ ] [ 50] Apache ServiceMix :: Bundles > :: > > quartz (1.8.5.2) > > [ 90] [Active ] [ ] [ 50] camel-quartz (2.9.2) > > [ 91] [Active ] [ ] [ 30] geronimo-servlet_2.5_spec > > (1.1.2) > > [ 92] [Active ] [ ] [ 30] JavaMail API (compat) (1.4.4) > > [ 93] [Active ] [ ] [ 30] Jetty :: Utilities > > (7.5.4.v20111024) > > [ 94] [Active ] [ ] [ 30] Jetty :: IO Utility > > (7.5.4.v20111024) > > [ 95] [Active ] [ ] [ 30] Jetty :: Http Utility > > (7.5.4.v20111024) > > [ 96] [Active ] [ ] [ 30] Jetty :: Asynchronous HTTP > > Client (7.5.4.v20111024) > > [ 97] [Active ] [ ] [ 30] Jetty :: Continuation > > (7.5.4.v20111024) > > [ 98] [Active ] [ ] [ 30] Jetty :: JMX Management > > (7.5.4.v20111024) > > [ 99] [Active ] [ ] [ 30] Jetty :: Server Core > > (7.5.4.v20111024) > > [ 100] [Active ] [ ] [ 30] Jetty :: Security > > (7.5.4.v20111024) > > [ 101] [Active ] [ ] [ 30] Jetty :: Servlet Handling > > (7.5.4.v20111024) > > [ 102] [Active ] [ ] [ 30] Jetty :: Utility Servlets and > > Filters (7.5.4.v20111024) > > [ 103] [Active ] [ ] [ 30] Jetty :: XML utilities > > (7.5.4.v20111024) > > [ 104] [Active ] [ ] [ 30] Jetty :: Webapp Application > > Support (7.5.4.v20111024) > > [ 105] [Active ] [ ] [ 30] Jetty :: JNDI Naming > > (7.5.4.v20111024) > > [ 106] [Active ] [ ] [ 30] Jetty :: Plus > (7.5.4.v20111024) > > [ 107] [Active ] [ ] [ 30] Jetty :: Websocket > > (7.5.4.v20111024) > > [ 108] [Active ] [ ] [ 50] Apache HttpCore OSGi bundle > > (4.1.2) > > [ 109] [Active ] [ ] [ 50] Apache HttpClient OSGi bundle > > (4.1.2) > > [ 110] [Active ] [ ] [ 50] camel-http4 (2.9.2) > > [ 111] [Active ] [Created ] [ 30] Apache Aries Transaction > > Blueprint (0.3.0) > > [ 112] [Active ] [ ] [ 30] Apache Aries Transaction > > Manager (0.3.0) > > [ 113] [Active ] [ ] [ 30] Apache Aries Transaction > > Enlisting JDBC Datasource (0.3.0) > > [ 114] [Active ] [ ] [ 30] Aries JPA Container API > (0.3.0) > > [ 115] [Active ] [Created ] [ 30] Aries JPA Container blueprint > > integration for Aries blueprint (0.3.0) > > [ 116] [Active ] [ ] [ 30] Aries JPA Container (0.3.0) > > [ 117] [Active ] [ ] [ 30] Aries JPA Container Managed > > Contexts (0.3.0) > > [ 118] [Active ] [ ] [ 30] OPS4J Pax Web - API (1.0.8) > > [ 119] [Active ] [ ] [ 30] OPS4J Pax Web - Service SPI > > (1.0.8) > > [ 120] [Active ] [ ] [ 30] OPS4J Pax Web - Runtime > (1.0.8) > > [ 121] [Active ] [ ] [ 30] OPS4J Pax Web - Jetty (1.0.8) > > [ 122] [Active ] [ ] [ 80] Sun Microsystems' JDBC Driver > > for MySQL (5.1.18) > > [ 123] [Active ] [Created ] [ 80] weather-datasource > > (1.0.5.SNAPSHOT) > > [ 124] [Active ] [Failure ] [ 80] weather-current-routes > > (1.0.5.SNAPSHOT) > > > > Please advise, > > borut > > > > -- > Claus Ibsen > ----------------- > CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com > 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/ >