我正在尝试在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.部署="D:\Kit\apache-tomee-plus-1.5.0\wtpwebapps"-Djava.endorsed.dirs="D:\Kit\apache-tomee-plus-1.5.0\认可"-Dwebsole.type=properties-Dwebsole.jms.url=tcp://localhost:61616-Dwebsole.jmx.url=service:jmx:rmi://jndi/rmi://localhost:1099/jmxrmi-Dwebsole.jmx.user=tomee-Dwebsole.jmx.pass=tomee-Dcom.sun.management.jmxRemote=true-Dcom.sun.management.jmxRemote.ssl=false-Dcom.sun.management.jmxRemote.验证=false-Dcom.sun.management.jmxRemote.port=
我可以用jsole连接到service: jmx:rmi://jndi/rmi://localhost:1099/jmxrmi
,但我在MBeans中看不到org.apache.actiemq。当我尝试访问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)
这是网络控制台战争的active emq. 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>
关于这个问题,有人能给我一点提示吗?
该问题与ActiveMQResourceAdapter中的“数据源”参数有关。此版本适用于:
<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