Cannot bind to URL [rmi://localhost:8686/management/rmi-jmx-connector]

Glassfish一直工作得挺棒,前久出了问题:asadmin start-domain domain1之后

  1,控制台没有错误

  2,但是server没起来,server.log里有如下的错误.

 

最近一直在查问题,google/baidu了N久,国外论坛的帖子也看了一下,死活找不到问题所在点.

  1,有的人说是hosts文件不对

  2,有人说肯定是防火墙组织了8686端口

  3,今天突然看到这个帖子:http://forums.java.net/jive/thread.jspa?threadID=39070&#38

  说是杀毒软件的问题,正好我用的也是NOD32,所以就很肯定问题在于这里了.

  NODE32高级设置(具体见附件)

  +病毒和间谍软件防护

   +Web访问保护

    +HTTP

      +Web浏览器

  把JAVA.EXE所在的那一行打叉,之后Glassfish正常启动了.

 

我的天.....有点无语,折腾了好久,原来是因为杀毒软件把java.exe监视了,所以导致Glassfish起不了.

 

--------------------------------------------------------------------------------------
[#|2009-10-25T21:02:10.937+0800|INFO|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;|ADM1079:AMX MBean 初始化已启动|#]

[#|2009-10-25T21:03:11.828+0800|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;com.sun.enterprise.admin.server.core.JmxConnectorLifecycle@fffa61;com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://192.168.1.129:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
 java.net.SocketTimeoutException: Read timed out];_RequestID=d40ca845-9d3f-451a-a86f-fdfc74b57e98;|无法启动服务 com.sun.enterprise.admin.server.core.JmxConnectorLifecycle@fffa61 ! : com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://192.168.1.129:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
 java.net.SocketTimeoutException: Read timed out]|#]

[#|2009-10-25T21:03:11.828+0800|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=d40ca845-9d3f-451a-a86f-fdfc74b57e98;|CORE5071:初始化时发生错误
com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://192.168.1.129:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
 java.net.SocketTimeoutException: Read timed out]
 at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onStartup(JmxConnectorLifecycle.java:153)
 at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:442)
 at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:120)
 at com.sun.enterprise.server.PEMain.run(PEMain.java:411)
 at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Caused by: java.io.IOException: Cannot bind to URL [rmi://192.168.1.129:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
 java.net.SocketTimeoutException: Read timed out]
 at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:814)
 at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:431)
 at com.sun.enterprise.admin.jmx.remote.server.rmi.JmxConnectorServerDriver.startConnectorServer(JmxConnectorServerDriver.java:218)
 at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onStartup(JmxConnectorLifecycle.java:134)
 ... 9 more
Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
 java.net.SocketTimeoutException: Read timed out]
 at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:122)
 at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
 at javax.naming.InitialContext.bind(InitialContext.java:359)
 at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:635)
 at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:427)
 ... 11 more
Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
 java.net.SocketTimeoutException: Read timed out
 at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:273)
 at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
 at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
 at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
 at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:116)
 ... 15 more
Caused by: java.net.SocketTimeoutException: Read timed out
 at java.net.SocketInputStream.socketRead0(Native Method)
 at java.net.SocketInputStream.read(SocketInputStream.java:129)
 at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
 at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
 at java.io.DataInputStream.readByte(DataInputStream.java:241)
 at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)
 ... 19 more
|#]

[#|2009-10-25T21:03:11.828+0800|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=d40ca845-9d3f-451a-a86f-fdfc74b57e98;|服务器启动失败。正在退出...|#]

[#|2009-10-25T21:03:11.828+0800|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|正在关闭服务器...|#]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值