我們使用mq 5.1.1運行Glassfish 4.1.1(Payara)。這是一個包含負載平衡器和集羣的HA設置。打開MQ代理不會啓動
Glassfish運行正常。問題是MQ不會啓動。
我認爲遠程MQ正在啓動。我可以做imqcmd列表bkr -b,並且我獲得了成功的結果。
然而,當我這樣做的imqcmd列表BKR(或imqcmd子列表JMX,沒有 -b主機名),我得到:
Host Primary Port
-------------------------
localhost 7676
WARNING: [C4003]: Error occurred on connection creation [localhost:7676]. - cause: java.net.SocketException: Connection reset
Error while connecting to the broker on host 'localhost' and port '7676'.
我想擺脫錯誤的,看看我的網絡IP而不是本地主機。
而且GF server.log中給出了這樣的:
[2017-04-12T11:54:46.516-0400] [Payara 4.1] [SEVERE] [rardeployment.start_failed] [javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors] [tid: _ThreadID=42 _ThreadName=admin-listener(2)] [timeMillis: 1492012486516] [levelValue: 1000] [[
RAR6035 : Resource adapter start failed.
javax.resource.spi.ResourceAdapterInternalException: java.security.PrivilegedActionException: javax.resource.spi.ResourceAdapterInternalException: MQJMSRA_RA4001: start:Aborting:Exception starting EMBEDDED broker=Broker failed to start
at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.startResourceAdapter(ActiveJmsResourceAdapter.java:557)
at com.sun.enterprise.connectors.ActiveOutboundResourceAdapter.init(ActiveOutboundResourceAdapter.java:130)
...
Caused by: java.lang.RuntimeException: Broker failed to start
at com.sun.messaging.jmq.jmsclient.runtime.impl.BrokerInstanceImpl.start(BrokerInstanceImpl.java:205)
at com.sun.messaging.jms.blc.EmbeddedBrokerRunner.start(EmbeddedBrokerRunner.java:331)
at com.sun.messaging.jms.blc.LifecycleManagedBroker.start(LifecycleManagedBroker.java:457)
... 92 more
Caused by: java.io.IOException: [B3297]: Unable to make directory <mydirectory>/imq/instances/imqbroker/etc
at com.sun.messaging.jmq.jmsserver.Broker.initializePasswdFile(Broker.java:376)
我想知道,這是無法對該目錄進行配置。
我一直在調試這幾天。我需要知道爲嵌入式代理配置IP的位置。我也需要知道在哪裏設置jmxrmi網址。
任何幫助,將不勝感激。謝謝!
請標記爲正確的答案,即使它是你的,以便人們知道解決方案已被找到。 – OndrejM