solving activemq inside camel namespace errors

Thu, Jul 2, 2009

I’ve been trying to start an embedded ActiveMQ broker from Camel via Spring:

<broker useJmx=“true” persistent=“false”
  xmlns=“http://activemq.apache.org/schema/core">
  <transportConnectors>
    <transportConnector uri=“tcp://localhost:61616” />
  </transportConnectors>
</broker>
but kept getting this hideous error:
NamespaceHandler class
org.apache.xbean.spring.context.v2.XBeanNamespaceHandler
for namespace
[http://activemq.apache.org/schema/core] not found
ClassNotFoundException:
org.apache.xbean.spring.context.v2.XBeanNamespaceHandler
turns out, from looking at the Camel examples, you need to import the xbean-spring dependency and it needs to be the right version:
<dependency>
  <groupId>org.apache.xbean</groupId>
  <artifactId>xbean-spring</artifactId>
  <version>3.5</version>
</dependency>
As JMX is enabled you can have a look at the queue using jconsole:
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi

comments powered by Disqus