Eclipse 在本地glassfish服务器上练习远程调试?

Eclipse 在本地glassfish服务器上练习远程调试?,eclipse,jakarta-ee,glassfish,remote-debugging,glassfish-4,Eclipse,Jakarta Ee,Glassfish,Remote Debugging,Glassfish 4,有一段时间,我尝试使用eclipse在远程glassfish服务器上进行远程调试。 我想在我自己的计算机上的本地服务器上做这件事。我也遵循同样的原则 设置远程调试所遵循的说明。在eclipse中,我设置了debug 配置为info-host=localhost,端口=6767,服务器处于调试模式。 6767是我用来连接glassfish服务器管理员的端口 这种方法在实际的远程调试中有效。但在本地调试中失败。 我收到错误-无法连接到远程VM。连接超时。 org.eclipse.jdi.Timeou

有一段时间,我尝试使用eclipse在远程glassfish服务器上进行远程调试。 我想在我自己的计算机上的本地服务器上做这件事。我也遵循同样的原则 设置远程调试所遵循的说明。在eclipse中,我设置了debug 配置为info-host=localhost,端口=6767,服务器处于调试模式。 6767是我用来连接glassfish服务器管理员的端口

这种方法在实际的远程调试中有效。但在本地调试中失败。 我收到错误-无法连接到远程VM。连接超时。 org.eclipse.jdi.TimeoutException

如何修复此错误?

文件夹workspace dir>.metadata>.log中的日志如下所示:

!ENTRY org.eclipse.jdt.launching 
!MESSAGE Failed to connect to remote VM. Connection timed out.
!STACK 0
org.eclipse.jdi.TimeoutException
    at org.eclipse.jdi.internal.connect.SocketTransportService.attach(SocketTransportService.java:162)
    at org.eclipse.jdi.internal.connect.SocketTransportImpl.attach(SocketTransportImpl.java:45)
    at org.eclipse.jdi.internal.connect.SocketAttachingConnectorImpl.attach(SocketAttachingConnectorImpl.java:134)
    at org.eclipse.jdt.internal.launching.SocketAttachConnector.connect(SocketAttachConnector.java:141)
    at org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaunchConfigurationDelegate.launch(JavaRemoteApplicationLaunchConfigurationDelegate.java:84)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1018)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1222)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
我尝试了一个不起作用的解决方案-


在浏览器>配置>服务器配置>JVM设置>调试中打开glassfish管理控制台:启用复选框您不使用远程调试方法调试本地应用程序。只需右键单击您的项目>调试方式>服务器上的调试>选择tomcat或glassfish等。 然后,从web浏览器运行应用程序并查看调试