由于项目需要,有些webservice需要远程内网端口,项目需要连接vpn到另一个网域进行开发。
1.当不连接vpn时 glassfish启动正常,但eclipse remoteDebug的时候就是不进断点,但glassfish下有程序日志记录
2.remoteDebug端口已开,且正常(其他机器测试过)。
3.与其他机器的区别仅仅是连接vpn后启动glassfish而我则是连接vpn之前启动glassfish
下面贴出service.log中错误
[#|2012-06-26T17:58:12.672+0800|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;com.sun.enterprise.admin.server.core.JmxConnectorLifecycle@7bfa93a1;com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://computername:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: computername; nested exception is:
java.net.ConnectException: Connection timed out: connect];_RequestID=db4797fc-cfcc-4d2b-bcb1-0a90265e22cf;|Service com.sun.enterprise.admin.server.core.JmxConnectorLifecycle@7bfa93a1 cannot be started! : com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://computername:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: computername; nested exception is:
java.net.ConnectException: Connection timed out: connect]|#]
[#|2012-06-26T17:58:12.672+0800|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=db4797fc-cfcc-4d2b-bcb1-0a90265e22cf;|CORE5071: An error occured during initialization
com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://computername:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: computername; nested exception is:
java.net.ConnectException: Connection timed out: connect]
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:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Caused by: java.io.IOException: Cannot bind to URL [rmi://computername:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: computername; nested exception is:
java.net.ConnectException: Connection timed out: connect]
at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
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