When integrating Camel into my Spring app, I get this exception:
Caused by: java.lang.ClassCastException:
org.springframework.context.support.GenericApplicationContext
at
org.apache.camel.spring.SpringCamelContext.createInjector(SpringCamelCon
text.java:147)
at
org.apache.camel.impl.DefaultCamelContext.getInjector(DefaultCamelContex
t.java:322)
at
org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(Defaul
tCamelContext.java:407)
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.ja
va:373)
at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.ja
va:139)
at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:38)
at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(Camel
ContextFactoryBean.java:103)
... 20 more
This is what my configuration is:
<bean id="camel"
class="org.apache.camel.spring.CamelContextFactoryBean">
</bean>
I use the SingletonBeanFactoryLocator to load my Spring configurations.
Any ideas?
Roshan Punnoose
Phone: 301-497-6039