camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Cannot cast DefaultCamelContext to ModelCamelContext
Date Thu, 22 Jan 2015 12:00:15 GMT

Yeah sounds strange as they are both from the very same jar - camel-core.

btw you do not need to type cast you can use the api on camel context.
which we may consider removing the @deprecation as its more annoying than good.

And instead of type cast we should add an adapt(T) method for ppl to
use if they really wanna work wit the model camel context

On Thu, Jan 22, 2015 at 12:46 PM, geppo <> wrote:
> Hi, I've written a JUnit test in Eclipse for a Camel route.
> It has been working fine for days, but now it doesn't startup failing in the
> CamelTestSupport.setUp method:
> I've tried to cleanup the Maven repository especially the camel-core,
> camel-test and junit repositories.
> When I right-click on the CamelTestSupport class in Eclipse it says it comes
> from the camel-test jar version 2.9.3 (which should match the camel-core)
> although I found in the past that Eclipse often lies on which version is
> actually using (if you have multiple ones in your Maven repository).
> Junit version used should be 4.8.1 (again that's what Eclipse says at
> least...).
> I suspect it's a problem with libraries versions.
> Any idea?
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message