Hi, I filled a JIRA [1] and committed an enhancement for it. It could give us more meaningful information if we don't setup the camel context rightly.
[1]https://issues.apache.org/jira/browse/CAMEL-5714 -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: willemjiang On Friday, October 19, 2012 at 7:57 PM, Robert wrote: > Hi Willem, > > thanks for this. I added a comment to the camel-context wiki page with a > suggested update. Hope it will be of helpful. > > https://cwiki.apache.org/confluence/display/CAMEL/Context?focusedCommentId=30739765&#comment-30739765 > <https://cwiki.apache.org/confluence/display/CAMEL/Context?focusedCommentId=30739765&#comment-30739765> > > > Best regards, > Robert > > > Willem.Jiang wrote > > Hi Robert, > > > > It is not a bug of camel. > > > > You need to make sure the context component can load the sub context > > first. > > So we need add the depends-on attribute like this > > <camel:camelContext id="mainCamelContext" depends-on="fooCamelContext"> > > <camel:route> > > <camel:from uri="jetty:http://localhost:9090/foo"/> > > <camel:to uri="context:fooCamelContext:foo.in (http://foo.in)"/> > > </camel:route> > > </camel:camelContext> > > > > <camel:camelContext id="fooCamelContext" streamCache="true" > > > > > > <camel:route> > > <camel:from uri="direct:foo.in (http://foo.in)"/> > > <camel:to uri="log:local.com.foo"/> > > </camel:route> > > </camel:camelContext> > > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Context-component-not-found-tp5721236p5721299.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).