「Glassfish」The Eclipse plugin cannot communicate with the GlassFish serverの対処方法

環境
Windows 10 64bit
Glassfish 4.1
Eclipse 2019

Glassfishの起動エラー現象

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
The Eclipse plugin cannot communicate with the GlassFish server....
The Eclipse plugin cannot communicate with the GlassFish server.
A GlassFish Enterprise Server may be running on the same admin or HTTP port,
but with a different root installation.Please also check for antivirus software,
firewall configuration, or VPN setup which might block some ports.
The Eclipse plugin cannot communicate with the GlassFish server.... The Eclipse plugin cannot communicate with the GlassFish server. A GlassFish Enterprise Server may be running on the same admin or HTTP port, but with a different root installation.Please also check for antivirus software, firewall configuration, or VPN setup which might block some ports.
The Eclipse plugin cannot communicate with the GlassFish server....
The Eclipse plugin cannot communicate with the GlassFish server.
A GlassFish Enterprise Server may be running on the same admin or HTTP port,
but with a different root installation.Please also check for antivirus software,
firewall configuration, or VPN setup which might block some ports.

解決方法
1.ポート番号「8080」のプロセスPIDを取得します。
書式
netstat -aon | find "ポート番号"

操作例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
C:\Users\arkgame>netstat -aon | find "8080"
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 10664
TCP 0.0.0.0:18080 0.0.0.0:0 LISTENING 3740
TCP [::]:8080 [::]:0 LISTENING 10664
TCP [::]:18080 [::]:0 LISTENING 3740
C:\Users\arkgame>netstat -aon | find "8080" TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 10664 TCP 0.0.0.0:18080 0.0.0.0:0 LISTENING 3740 TCP [::]:8080 [::]:0 LISTENING 10664 TCP [::]:18080 [::]:0 LISTENING 3740
C:\Users\arkgame>netstat -aon | find "8080"
  TCP         0.0.0.0:8080           0.0.0.0:0              LISTENING       10664
  TCP         0.0.0.0:18080          0.0.0.0:0              LISTENING       3740
  TCP         [::]:8080              [::]:0                 LISTENING       10664
  TCP         [::]:18080             [::]:0                 LISTENING       3740

2.プロセスPIDを指定してタスクを終了します。
書式
taskkill /pid /F PID番号
操作例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
C:\Users\arkgame>taskkill /F /pid 10664
成功: PID 10664 のプロセスは強制終了されました。
C:\Users\arkgame>taskkill /F /pid 10664 成功: PID 10664 のプロセスは強制終了されました。
C:\Users\arkgame>taskkill /F /pid 10664
成功: PID 10664 のプロセスは強制終了されました。

3.GlassFishを再起動します。

Glassfish

Posted by arkgame