尝试在Netbeans中使用Glassfish错误 [英] Glassfish error upon attempting to use in Netbeans

查看:162
本文介绍了尝试在Netbeans中使用Glassfish错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天



我试图研究JAVA EE,所以我安装了Glassfish 3。但是当我试图在Netbeans 6.9上部署我的项目时。我收到以下错误:

  SEVERE:由于启动异常而关闭v3:地址已在使用中:bind:8080 = com .sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler @ 106433d 

服务器赢得'开始。

好像端口8080已经被使用了。



我转到控制面板 - >管理工具 - >服务,但我不知道要杀死哪个应用程序,因为端口没有在那里显示。我怎么知道哪个应用程序当前正在端口8080上运行,这样我就可以杀死它了?编辑:按照你的建议,我做了netstat -aon



结果如下: / p>

  TCP 0.0.0.0:3700 0.0.0.0:0 LISTENING 4724 
TCP 0.0.0.0:4848 0.0.0.0: 0 LISTENING 4724
TCP 0.0.0.0:8080 0.0.0.0:0聆听4724
TCP 0.0.0.0:8181 0.0.0.0:0聆听4724
TCP 0.0.0.0:8686 0.0.0.0 :0 LISTENING 4724

我可以杀了吗?我不知道这是什么意思 - >LISTENING..对不起,我不明白这个结果多少。



无论如何, Jigar Joshi和它工作!
谢谢大家的帮助!

解决方案

错误信息告诉我们这个端口已经绑定了一些其他进程因为你在Windows机器上运行

&


转到控制面板 - >管理工具 - >服务,但我不知道我想杀哪个应用程序,因为端口不是在那里指出。我怎么知道哪个应用程序当前正在端口8080上运行,这样我就可以杀死它了?

转到命令提示符

  netstat -aon 

它会向你显示类似于

  TCP 192.1.200.48:2053 24.43.246.60:443建立了248 
TCP 192.1.200.48:2055 24.43.246.60:443建立了248
TCP 192.1.200.48 :2126 213.146.189.201:12350建立时间1308
TCP 192.1.200.48:3918 192.1.200.2:8073建立时间1504
TCP 192.1.200.48:3975 192.1.200.11:49892 TIME_WAIT 0
TCP 192.1。 200.48:3976 192.1.200.11:49892 TIME_WAIT 0
TCP 192.1.200.48:4039 209.85.153.100:80 ESTABLISHED 248
TCP 192.1.200.48:8080 209.85.153.100:80建立时间248

检查哪个进程绑定了您的端口。在上面的例子中,它的 248 现在如果你确定你需要杀死那个进程fire



Linux:

  kill -9 248 

Windows:

  taskkill / f / pid 248 

它会杀死该进程

Good day

I am trying to study JAVA EE so I installed the Glassfish 3. But when I attempted to deploy my project on Netbeans 6.9. I get the following error:

SEVERE: Shutting down v3 due to startup exception : Address already in use: bind: 8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@106433d 

And the server won't start.

It seems like that the port 8080 is already in used.

I go to Control Panel -> Administrative Tools -> Services but I don't know which application to kill because the port is not indicated there. How can I know which application is currently running at port 8080 so I could kill it?

EDIT: As per your suggestions, I did the netstat -aon

The result is as follows:

  TCP    0.0.0.0:3700           0.0.0.0:0              LISTENING       4724
  TCP    0.0.0.0:4848           0.0.0.0:0              LISTENING       4724
  TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       4724
  TCP    0.0.0.0:8181           0.0.0.0:0              LISTENING       4724
  TCP    0.0.0.0:8686           0.0.0.0:0              LISTENING       4724

Can I kill this? I don't know what this means -> "LISTENING".. Sorry I don't understand this result much..

Anyway I killed the application as suggested by @Jigar Joshi and it Worked! Thank you all for your help!

解决方案

error message tells that the port is already binded with some other process now as you are running on windows machine

&

go to Control Panel -> Administrative Tools -> Services but I don't know which application I want to kill because the port is not indicated there. How can I know which application is currently running at port 8080 so I could kill it?

goto command prompt

netstat -aon

it will show you something like

 TCP    192.1.200.48:2053      24.43.246.60:443       ESTABLISHED     248
 TCP    192.1.200.48:2055      24.43.246.60:443       ESTABLISHED     248
 TCP    192.1.200.48:2126      213.146.189.201:12350  ESTABLISHED     1308
 TCP    192.1.200.48:3918      192.1.200.2:8073       ESTABLISHED     1504
 TCP    192.1.200.48:3975      192.1.200.11:49892     TIME_WAIT       0
 TCP    192.1.200.48:3976      192.1.200.11:49892     TIME_WAIT       0
 TCP    192.1.200.48:4039      209.85.153.100:80      ESTABLISHED     248
 TCP    192.1.200.48:8080      209.85.153.100:80      ESTABLISHED     248

check which process has binded your port. here in above example its 248 now if you are sure that you need to kill that process fire

Linux:

kill -9 248

Windows:

taskkill /f /pid 248

it will kill that process

这篇关于尝试在Netbeans中使用Glassfish错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆