首页 > 解决方案 > 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 配置文件。DefaultJMSConnectionFactorystandalone.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]"]
}

标签: activemq-artemisjboss-eap-7

解决方案


推荐阅读