fabric leveldb broker with camel activemq component does not work

Solution Verified - Updated -

Issue

  • Create new Fabric container:
JBossFuse:karaf@root> fabric:create --new-user admin --new-user-password admin --wait-for-provisioning --verbose --profile fabric
Waiting for container: root
Waiting for container root to provision.
Using specified zookeeper password:admin

JBossFuse:karaf@root> fabric:container-create-child root TestContainer
The following containers have been created successfully:
Container: TestContainer.
  • Add the profile 'mq-amq' to the TestConatiner fabric instance,
BossFuse:karaf@root> fabric:container-change-profile TestContainer mq-amq

JBossFuse:karaf@root> fabric:container-list
[id] [version] [connected] [profiles] [provision status]
root* 1.0 true fabric, fabric-ensemble-0000-1, fabric success
TestContainer 1.0 true mq-amq success

  • The broker.xml has the camel route inside it and there is a profile io.fabric8.agent.properties with the following contents,
feature.camel-jms=camel-jms
feature.activemq-camel=activemq-camel
feature.mq-fabric-camel=mq-fabric-camel
feature.camel=camel
attribute.parents=mq-base
  • The following exception occurs,
2014-08-28 21:53:10,500 | ERROR | pool-45-thread-1 | ActiveMQServiceFactory           | ceFactory$ClusteredConfiguration  452 | 141 - org.jboss.amq.mq-fabric - 6.1.0.redhat-379 | Exception on start: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'template': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'camel-amq-context': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: BundleContext must be specified
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'template': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'camel-amq-context': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: BundleContext must be specified
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:529)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)[124:org.apache.servicemix.bundles.spring-beans:3.2.8.RELEASE_1]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

Environment

  • Red Hat JBoss Fuse
    • 6.x
  • Fabric

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.