1

ここに示すように、tomee+ 1.5.0 で Web コンソールを起動しようとしています: http://activemq.apache.org/web-console.html (Tomcat を使用した構成例)

サーバーの起動時に次のパラメーターを使用します。

-Dcatalina.base="D:\Kit\apache-tomee-plus-1.5.0" -Dcatalina.home="D:\Kit\apache-tomee-plus-1.5.0" -Dwtp.deploy="D: \Kit\apache-tomee-plus-1.5.0\wtpwebapps" -Djava.endorsed.dirs="D:\Kit\apache-tomee-plus-1.5.0\endorsed" -Dwebconsole.type=properties -Dwebconsole.jms .url=tcp://localhost:61616 -Dwebconsole.jmx.url=service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi -Dwebconsole.jmx.user=tomee -Dwebconsole.jmx. password=tomee -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=1099

jconsole に接続できますがservice:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi、MBean に「org.apache.activemq」が表示されません。で Web コンソールにアクセスしようとすると、

http://localhost:8080/activemq-web-console-5.7.0/

次の例外が発生し続けます。

Caused by: java.lang.IllegalStateException: No broker is found at any of the 1 configured urls
at org.apache.activemq.web.RemoteJMXBrokerFacade.createConnection(RemoteJMXBrokerFacade.java:168)

これは、Web コンソール戦争の activemq.xml ファイル内のブローカーです。

<broker brokerName="web-console" useJmx="true" xmlns="http://activemq.apache.org/schema/core">

<persistenceAdapter>
  <kahaDB directory="${activemq.data}/kahadb"/>
</persistenceAdapter>

<transportConnectors>
  <transportConnector name="openwire" uri="tcp://localhost:61616"/>
  <transportConnector name="stomp" uri="stomp://localhost:61613"/>
</transportConnectors> </broker>

誰かがこの問題に関するヒントを教えてくれますか?

4

1 に答える 1

0

この問題は、ActiveMQResourceAdapter の「Datasource」パラメーターに関連しています。このバージョンは動作します:

    <Resource id="JMSAdapter" type="ActiveMQResourceAdapter">
            BrokerXmlConfig = broker:(tcp://localhost:61616)?persistent=false&useJmx=true
            ServerUrl = tcp://localhost:61616
            Datasource =
    </Resource>

これは以下に関連しています: https://issues.apache.org/jira/browse/TOMEE-474

于 2012-10-30T08:22:31.630 に答える