ActiveMQ没有';t识别Stomp:未识别传输方案:[Stomp&x2B;ssl]
我正试图在puppetmaster(开源puppet)上设置mcollective/activemq。我遇到了一个问题,ActiveMQ无法识别Stomp协议。以下是我的ActiveMQ没有';t识别Stomp:未识别传输方案:[Stomp&x2B;ssl],activemq,puppet,stomp,ubuntu-16.04,mcollective,Activemq,Puppet,Stomp,Ubuntu 16.04,Mcollective,我正试图在puppetmaster(开源puppet)上设置mcollective/activemq。我遇到了一个问题,ActiveMQ无法识别Stomp协议。以下是我的/etc/activemq/instances enabled/activemq/activemq.xml文件中的相关代码段,它应该启用stomp+ssl: <transportConnectors> <transportConnector name="openwire" uri="tc
/etc/activemq/instances enabled/activemq/activemq.xml
文件中的相关代码段,它应该启用stomp+ssl:
<transportConnectors>
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/>
<transportConnector name="stomp+ssl" uri="stomp+ssl://0.0.0.0:61614?needClientAuth=true&transport.enabledProtocols=TLSv1,TLSv1.1,TLSv1.2"/>
</transportConnectors>
我的项目中的嵌入式ActiveMQ服务器也遇到了同样的问题。事实证明,我需要将以下依赖项添加到pom中
org.apache.activemq
activemq跺脚
5.15.0
org.apache.activemq
activemq存储
5.15.0
在您的情况下,我认为您需要获得这两个JAR并将其添加到ActiveMQ安装中。在
ActiveMQ
中,不包括ubuntu 16+library stomp transport提供的包。我不知道为什么。
Yoy可以手动下载它并将其放入/usr/share/activemq/lib
:
cd /usr/share/activemq/lib
# check your actviemq version before (apt-cache policy activemq) and use the relevant version of library.
wget https://repository.apache.org/content/repositories/releases/org/apache/activemq/activemq-stomp/5.13.5/activemq-stomp-5.13.5.jar
service activemq restart
你找到解决方法了吗?请编辑你的帖子,包括为什么该代码会回答问题的详细信息question@CalvT븃 添加了更多信息这修复了Ubuntu 16.04上ActiveMQ的问题,通过
systemctl start ActiveMQ.service
调用ActiveMQ时,ActiveMQ无法启动;例如,当尝试使用ActiveMQ(由管理,而不是使用NAT作为中间件的新版本)运行经典(Puppet 3.x)MCollective代理时。运行/etc/init.d/ActiveMQ console MCollective
有助于识别丢失的Stomp库的问题,该库不会记录在其他任何地方。
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-stomp</artifactId>
<version>5.15.0</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-kahadb-store</artifactId>
<version>5.15.0</version>
</dependency>
cd /usr/share/activemq/lib
# check your actviemq version before (apt-cache policy activemq) and use the relevant version of library.
wget https://repository.apache.org/content/repositories/releases/org/apache/activemq/activemq-stomp/5.13.5/activemq-stomp-5.13.5.jar
service activemq restart