[
https://issues.apache.org/jira/browse/AMQ-4727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14287369#comment-14287369
]
Gary Tully commented on AMQ-4727:
---------------------------------
JB thanks - there are two strange things with the itests at the moment. that
point to something being wrong in the way pax exam is setting up the container
(i think). I guess it is being misconfigured - but I can't see the problem
after comparing to karaf/camel/fabric8 etc ;-)
a) feature add war fails (needed by the broker web dependency) - but works on
a vanilla karaf distro
the workaround is to manually install the bundles that it requires. That
does not seem right to me.
see:
https://github.com/apache/activemq/blob/trunk/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ObrFeatureTest.java#L42
b) for the camel route dropped into the deploy folder - it does not get
deployed for some reason
see:
https://github.com/apache/activemq/blob/trunk/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerNdExternalCamelFeatureTest.java#L47
For the embedded camel case, this bundlecontext issue. My hope is that there is
some correlation between these, but that may not be the case. hope this helps
:-)
> Unable to add camel routes to activemq running in a karaf container
> -------------------------------------------------------------------
>
> Key: AMQ-4727
> URL: https://issues.apache.org/jira/browse/AMQ-4727
> Project: ActiveMQ
> Issue Type: Bug
> Components: activemq-camel
> Affects Versions: 5.8.0
> Environment: jboss-amq-6.0 on Red Hat Enterprise Linux Server release
> 6.4 (Santiago)
> Reporter: Noel O'Connor
> Assignee: Jean-Baptiste Onofré
> Fix For: 5.9.0
>
>
> gtully: noconnor: there is a pax exam test on apache trunk that validates the
> karaf features - see the xml
> https://github.com/apache/activemq/blob/trunk/activemq-karaf-itest/src/test/resources/org/apache/activemq/karaf/itest/activemq-nd-camel.xml
> [07:35am] gtully: in 6.0 u can try the same - just embed a context
> [07:36am] gtully: so modify etc/activemq.xml
> [07:36am] noconnor: gtully: thanks, trying it now
> [07:44am] noconnor: gtully: same issue again, "bundle context must be
> specified"
> [07:49am] gtully: noconnor: i see the same thing with the test on trunk… need
> to investigate that a bit…can u raise an amq issue
> [07:51am] gtully: noconnor: on trunk that can be reproduced with mvn test
> -Dtest=ActiveMQBrokerNdCamelFeatureTest in the activemq-karaf-itest module
> Exception on start: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'activemq' defined in file
> [/opt/jboss-amq/jboss-a-mq-6.0.0.redhat-024
> /etc/activemq.xml]: Initialization of bean failed; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'camel': 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 'activemq' defined in file
> [/opt/jboss-amq/jboss-a-mq-6.0.0.redhat-024/etc/activemq.xml]: I
> nitialization of bean failed; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'camel': Invocation of init method failed
> ; nested exception is java.lang.IllegalArgumentException: BundleContext must
> be specified
> Also I had to add the activemq-camel feature to org.apache.karaf.features.cfg
> to get the namespaces resolved
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)