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/
