activemq-artemis - JMS 与 ActiveMQ Artemis 配置问题
问题描述
一直试图在 JBoss EAP 7.2 上部署 Java EE 应用程序,它使用一个@ApplicationScoped
生产者类,它创建主题并发送消息和一个MessageDrivenBean
覆盖onMessage
方法。由于以下错误,部署不成功:
18:15:14,260 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 6) WFLYCTL0013: Operation ("redeploy") failed - address: ([("deployment" => "MQTesting.war")]) - failure description:
{
"WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.module.MQTesting.MQTesting.DefaultJMSConnectionFactory"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.MQTesting.MQTesting.env.ActiveMQProducer.connectionFactory is missing [jboss.naming.context.java.module.MQTesting.MQTesting.DefaultJMSConnectionFactory]"]
}
18:15:14,260 ERROR [org.jboss.as.server] (management-handler-thread - 6) WFLYSRV0011: Redeploy of deployment "MQTesting.war" was rolled back with the following failure message:
{
"WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.module.MQTesting.MQTesting.DefaultJMSConnectionFactory"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.MQTesting.MQTesting.env.ActiveMQProducer.connectionFactory is missing [jboss.naming.context.java.module.MQTesting.MQTesting.DefaultJMSConnectionFactory]"]
}
我使用standalone.xml 作为JBoss 配置文件。DefaultJMSConnectionFactory
在standalone.xml
文件中创建。我正在尝试以这种方式获取连接工厂:
@Resource
private ConnectionFactory connectionFactory;
还从standalone-full.xml
.
Message Driven Bean,它实现MessageListener
的启动是在日志文件中显示的。但是,之后发生此错误并且部署不成功。
编辑:它给了我这个错误standalone-full.xml
并且服务器启动失败。
ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "messaging-activemq"),
("server" => "default")
]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => ["jboss.http-upgrade-registry.default"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.messaging-activemq.default is missing [jboss.http-upgrade-registry.default]"]
}
解决方案
推荐阅读
- python - 使用 ijson 读取和解析 JSON
- python - 如何通过 ObjectId 查找 Django、MongoDB
- javascript - 如何在 node.js REDIS 中替换已弃用的 HMSET
- android - 如何在 kotlin (Android) 中将焦点设置在 ArrayList<> 的最后一个元素上?
- amazon-web-services - 到 ES 的 Logstash 输出给了我错误代码“400”
- python - Python 字典辅助
- postgresql - 如何选择带有柴油 rs 的列子集?
- javascript - JavaScript - POST 到 URL 不发送数据
- ios - MobSF:解决@rpath 违规问题
- python-3.x - 有人可以解释一下这个声明对图像的作用吗?图像 = 图像[60:-25, 0:, 0:]