Spring整合ActiveMQ时,在xml配置文件中配置相关<amq:xxx/>标签时,IDE出现红色错误提示,
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c:
The matching wildcard is strict,
but no declaration can be found for element 'amq:broker'.
在网上搜索一下很多人出现这问题,参考了很多后,最后还是解决。
http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd
最终问题IDE无法读取schema文档,需要手工配置,
步骤如下:
1. Select Windows->Preferences from the Eclipse menu bar.
2. Select XML->XML Catalog from the left hand configuration tree.
3. Highlight User Specified Entries and select Add.
4. The Add XML Catalog Entry windows appears.
5. In the Location enter the path to the activemq-all jar, then add !/activemq.xsd to the end of the jar name. e.g. jssms/webapp/WEB-INF/lib/activemq-all-5.4.0.jar!/activemq.xsd
6. Under KeyType enter Namespace Name
7. and under Key enter http://activemq.apache.org/schema/core
8. then click Ok.
9. Now we need to do the same for the other name space file, so hit Add again.
10. In the Location enter the path to the activemq-all jar, then add !/activemq.xsd to the end of the jar name. e.g. jssms/webapp/WEB-INF/lib/activemq-all-5.4.0.jar!/activemq.xsd
11. Under KeyType enter Schema Location
12. and under Key enter http://activemq.apache.org/schema/core/activemq-core.xsd
分享到:
相关推荐
基于 IP 验证和授权插件的源码及jar,jar包可直接拷贝至activemq 目录下的 lib 目录下,打开activemq\conf\activemq.xml,在 broker 节点中加入: <plugins> <bean xmlns=...
<amq:persistenceAdapter > <amq:jdbcPersistenceAdapter dataSource="#oracle-ds"/> </amq:persistenceAdapter> <!-- Oracle DataSource Sample Setup --> <bean id="oracle-ds" class="org.apache....
java springboot整合activemq工程 #activemq配置 #默认情况下activemq提供的是queue模式 true是可以使用topic,false是仅使用queue模式 spring.jms.pub-sub-domain: true # 设置连接的activemq服务器 spring....
activeMQ+spring的简单案例
Spring和ActiveMQ整合的完整实例
在Tomcat的conf/context.xml中的<Context>元素里面加上如下配置: <Resource name="myJMS/ConnectionFactory" auth="Container" type="org.apache.activemq.ActiveMQConnectionFactory" description="JMS ...
博客http://blog.csdn.net/poorCoder_/article/details/61192791的代码。Spring整合ActiveMQ的简单实例
<a href=http://activemq.apache.org/version-5-getting-started.html >http://activemq.apache.org/version-5-getting-started.html</a> <a href=http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html>...
百度spring整合activemq 发现几乎都只是在xml文件配置固定的消息队列而且太麻烦。并没有根据需求进行动态生成主题和队列。本文档参考了纯粹的activemq java代码和百度上的demo,很简洁的实现了动态消息队列的生成和...
spring整合activemq的maven工程 activemq+spring+maven project
源码为web工程,整合了Spring,SpringMVC、ActiveMQ,启动后,index页面输入消息,控制台输出消息。
NULL 博文链接:https://baobeituping.iteye.com/blog/407104
Spring整合ActiveMQ实现队列和主题发布订阅通信、一个完整的DEMO
Spring集成ActiveMQ配置
Spring与ActiveMQ整合完整案例,详情请参见博文:http://blog.csdn.net/l1028386804/article/details/68979725
maven spring mq整合,注意最新版的mq的jar包是集成了spring的,我用的5.11.1的。 运行之前,先要下载mq服务本地运行http://apache.fayea.com//activemq/5.14.3/apache-activemq-5.14.3-bin.zip
activemq与spring的整合的简单案例,整体说明见博文:http://blog.csdn.net/u012897777/article/details/78748221
ActiveMQ与Spring线程池整合的一个实例。 lib库没有上传。 对于实例的讲解,在竹子的论坛有我对这个实例的帖子(http://www.java2000.net/viewthread.jsp?tid=1167) lib中包含: apache-activemq-4.1.1.jar ...
详细内容: SpringJMS整合ActiveMQ.doc 详细说明文档 apache-activemq-5.8.0-bin.zip ActiveMQ安装包 JMSTest.rar MyEclipse8.5下web工程
NULL 博文链接:https://gong1208.iteye.com/blog/1555582