Camel/Spring giving the error: "The Prefix broker for element 'broker:broker' is not bound" when declaring ActiveMQ broker -



Camel/Spring giving the error: "The Prefix broker for element 'broker:broker' is not bound" when declaring ActiveMQ broker -

i trying utilize embedded camel activemq broker. when include next xml in spring file, error (more finish stack trace @ bottom):

line 13 in xml document ... invalid; ... prefix "broker" element "broker:broker" not bound

the xml referenced:

<broker:broker usejmx="false" persistent="false" brokername="localhost"> <broker:transportconnectors> <broker:transportconnector uri="tcp://localhost:61616"/> </broker:transportconnectors> </broker:broker>

this xml taken camel in action book. (believe i) have required maven dependencies.

more finish stack trace:

org.springframework.beans.factory.xml.xmlbeandefinitionstoreexception: line 13 in xml document class path resource [meta-inf/spring/filecopycontext.xml] invalid; nested exception org.xml.sax.saxparseexception; linenumber: 13; columnnumber: 73; prefix "broker" element "broker:broker" not bound. @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloadbeandefinitions(xmlbeandefinitionreader.java:396) @ ...

i figured out. missing topmost tag, line: xmlns:broker="http://activemq.apache.org/schema/core"

spring apache-camel activemq

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -