Hi

Can you double check your classpath. You may have mixed versions of
Camel in the classpath.


On Thu, Mar 10, 2011 at 5:29 PM, sub3 <[email protected]> wrote:
> Hi,
>
> Hope someone can help me out.  I am having issues upgrading to 2.6.0. During
> runtime, I keep getting:
>
> java.lang.NoSuchMethodError:
> org.apache.camel.CamelContext.addRoutes(Lorg/apache/camel/RoutesBuilder;)V
>
> on:
> context.addRoutes(new RouteBuilder() {
>        public void configure() {
> errorHandler(deadLetterChannel("bean:DeadLetterChannelProcessor?method=handleError").maximumRedeliveries(1));
> from(listener).to("bean:"+listener2+"?method="+functName);
>        }
> });
>
> The documentation still says this is valid, so I am guessing something
> change recently.  Is there an easy fix? Also, is there a place to download
> 2.6.0 javadocs? The main link still points to 2.2.0 & the 2.6.0 download
> release doesn't compile.  Thanks.
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Upgrade-to-2-6-0-can-t-context-addRoutes-tp3423607p3423607.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to