Failed to start jmx connector: Cannot bind to URL[rmi://localhost:1099/jmxrmi]
来源:互联网 发布:淘宝高仿衣服店推荐 编辑:程序博客网 时间:2024/05/16 11:06
INFO ActiveMQ JMS Message Broker (localhost, ID:cnshawlt1129-1495-1316140863881-0:0) started
INFO Connector vm://localhost Started
WARN Failed to start jmx connector: Cannot bind to URL [rmi://localhost:1099/jmxrmi]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect]
Xml代码
1. <bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
2. <property name="config" value="classpath:org/apache/activemq/xbean/activemq.xml" />
3. <property name="start" value="true" />
4. </bean>
5.
6. <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory" depends-on="broker">
7. <property name="brokerURL" value="vm://localhost"/>
8. </bean>
如果persistent是true,那么ActiveMQ会在当前目录下创建一个缺省值是activemq-data的目录用于持久化保存数据。需要注意的是,如果程序中启动了多个不同名字的VM broker,那么可能会有如下警告:Failed to start jmx connector: Cannot bind to URL [rmi://localhost:1099/jmxrmi]: javax.naming.NameAlreadyBoundException…可以通过在transportOptions中追加 broker.useJmx=false来禁用JMX来避免这个警告
2.2.2 TCP Transport
TCP transport 允许客户端通过TCP socket连接到远程的broker。以下是配置语法:
tcp://hostname:port?transportOptions
Transport Options的可选值如下:
例如:tcp://localhost:61616?trace=false
source:http://www.goldenbug.net/tag/java/
- Failed to start jmx connector: Cannot bind to URL[rmi://localhost:1099/jmxrmi]
- Cannot bind to URL [rmi://localhost:8686/management/rmi-jmx-connector]
- Server Tomcat v6.0 Server at localhost failed to start.
- Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
- Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext
- Server Tomcat v6.0 Server at localhost failed to start.
- Server Tomcat v8.0 Server at localhost failed to start.
- Server Tomcat v7.0 Server at localhost failed to start.
- Server Tomcat v8.0 Server at localhost failed to start.
- Server Tomcat v7.0 Server at localhost failed to start.
- Server Tomcat v7.0 Server at localhost failed to start
- Server Tomcat v7.0 Server at localhost failed to start
- Server Tomcat v7.0 Server at localhost failed to start
- Server Tomcat v8.0 Server at localhost failed to start.
- Spring MVC: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]
- 解决Tomcat v8.0 Server at localhost failed to start.
- Server Tomcat v7.0 Server at localhost failed to start.
- Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/TestDem
- Java反射机制
- 并行执行(parallel)用法Oracle技术[转]
- WSGI简介
- SUM服务器监控软件--软件介绍
- 内部排序算法(未完)
- Failed to start jmx connector: Cannot bind to URL[rmi://localhost:1099/jmxrmi]
- C++ Primer Plus学习:第十一章 使用类(3)
- 解决安装magento时“Unable to read response, or response is empty” 的错误
- 10大负面测试用例(转帖)
- cout使用到一些小知识点回顾。
- sql日期格式化
- 破解Visual SVN
- 找到一些宝贝
- 有效的使用和设计COM智能指针——条款11:以类型安全的方式创建资源和查询接口