我正在嘗試使用嵌入式駱駝activemq代理。當我包括我的春節檔以下的XML,我得到的錯誤(在底部更完整的堆棧跟蹤):當聲明ActiveMQ代理時,Camel/Spring出現錯誤:「元素的代理經紀人:代理沒有被綁定」
Line 13 in XML document ... is invalid; ... The prefix "broker" for element "broker:broker" is not bound
的XML引用:
<broker:broker useJmx="false" persistent="false" brokerName="localhost">
<broker:transportConnectors>
<broker:transportConnector uri="tcp://localhost:61616"/>
</broker:transportConnectors>
</broker:broker>
此XML從駱駝取行動書。我(相信我)擁有所有必需的Maven依賴關係。
更完整的堆棧跟蹤:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 13 in XML document from class path resource [META-INF/spring/filecopycontext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 13; columnNumber: 73; The prefix "broker" for element "broker:broker" is not bound.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
at ...