BTW I've just committed a patch to trunk which I think should fix your issue - I'll create an explicit test case to resolve CAMEL-103 tomorrow...
On 8/14/07, James Strachan <[EMAIL PROTECTED]> wrote: > On 8/14/07, Punnoose, Roshan <[EMAIL PROTECTED]> wrote: > > When integrating Camel into my Spring app, I get this exception: > > Caused by: java.lang.ClassCastException: > > org.springframework.context.support.GenericApplicationContext > > > > at > > Sorry about that! > > This looks like a bug in the SpringCamelContext; assuming that the > ApplicationContext is-an AbstractRefreshableApplicationContext, so it > can't handle GenericApplicationContext. > > I've raised a JIRA for this... > https://issues.apache.org/activemq/browse/CAMEL-103 > > > I should have a fix in trunk very soon! A workaround is to use another > ApplicationContext implementation (ClassPathXmlApplicationContext / > FileXmlApplicationContext etc). > > > > org.apache.camel.spring.SpringCamelContext.createInjector(SpringCamelCon > > text.java:147) > > -- > James > ------- > http://macstrac.blogspot.com/ > -- James ------- http://macstrac.blogspot.com/
