I just switched to 2.0-snapshot and I don't know how to get my routeBuilders in the context properly.

    <bean id="someRouteBuilder" class="com.foo.SomeRouteBuilder">
    </bean>

using a <camel:routeBuilder ref="someRouteBuilder" /> inside my camelcontext I get this exception on startup:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'camel:beanPostProcessor': Cannot resolve reference to bean 'camel' while setting bean property 'camelContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'camel': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.camel.builder.RouteBuilder': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.camel.builder.RouteBuilder]: Is it an abstract class?; nested exception is java.lang.InstantiationException

Is there some other way to do this?

Ryan

Reply via email to