AnsweredAssumed Answered

Running Camel withing Activiti-REST tomcat application

Question asked by mhanrahan on Mar 14, 2014
Latest reply on Mar 21, 2014 by trademak
We are using the Activiti-Camel component to start processes when a message comes in via an activemq queue.  Up until now, we have placed the configuration within the Activiti Explorer Tomcat application, however we have recently been replacing most of the functionality we used explorer for with our own front end accessing the engine via the Activiti REST Tomcat application.

To accomplish this, i just inserted this into the activiti-context.xml file of the REST application:

<import resource="classpath:META-INF/spring/*.xml" />

And within the spring directory we have an xml file containing:

<beans xmlns=""

  <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
    <property name="brokerURL" value="${broker.activemq.url}" />
    <property name="userName" value="${broker.activemq.username}" />
    <property name="password" value="${broker.activemq.password}" />

  <camelContext id="camelContext" xmlns="">
    <routeBuilder ref="routeBuilder" />
    <routeBuilder ref="telflowNBNRoutes" />

  <bean id="routeBuilder" class="" />


When I start this up, I get the stack trace:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.activiti.camel.ActivitiComponent': Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.apache.camel.spi.Registry.findByTypeWithName(Ljava/lang/Class;)Ljava/util/Map;
        at org.apache.camel.spring.spi.SpringInjector.newInstance(
        at org.apache.camel.impl.DefaultComponentResolver.resolveComponent(
        at org.apache.camel.impl.DefaultCamelContext.getComponent(
        … 70 more
Caused by: java.lang.NoSuchMethodError: org.apache.camel.spi.Registry.findByTypeWithName(Ljava/lang/Class;)Ljava/util/Map;
        at org.activiti.camel.ActivitiComponent.getByType(
        at org.activiti.camel.ActivitiComponent.setCamelContext(
        at org.apache.camel.impl.DefaultCamelBeanPostProcessor.postProcessBeforeInitialization(
        at org.apache.camel.spring.CamelBeanPostProcessor.postProcessBeforeInitialization(

Has anyone seen this error before?