servicemix3.3.2中activemq的namespace问题

学习servicemix的笔记

今天照着官方的教程,写了一个简单的JMS的SU,maven的build一切顺利,但是出现了运行时错误,Unrecognized xbean namespace mapping: in namespace http://activemq.org/config/1.0

网上搜索了下,发现activemq在5.0以前用的是http://activemq.org/config/1.0这个namespace ,5.1以后用的是http://activemq.apache.org/schema/core

解决办法把
xmlns:amq="http://activemq.org/config/1.0"

改为

xmlns:amq="http://activemq.apache.org/schema/core"


详见 http://activemq.apache.org/xml-reference.html

重新build,部署,OK,问题解决

猜你喜欢

转载自luotianle.iteye.com/blog/1097967
今日推荐