Java GlassFish Server:管理员端口被空占用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20869229/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 04:53:07  来源:igfitidea点击:

GlassFish Server: Administrator port is occupied by null

javanetbeansglassfish

提问by David

I tried to start glassfishserver via the Netbeans IDE but it showed this error:

我尝试glassfish通过 Netbeans IDE启动服务器,但显示此错误:

Could not start GlassFish Server: Administrator port is occupied by null
C:\Users\Ateeq Khaliq\Documents\NetBeansProjects\WebApplication1\nbproject\build-impl.xml:1045: Deployment error: Could not start GlassFish Server: Administrator port is occupied by null
See the server log for details.
BUILD FAILED (total time: 2 seconds)

I have changed the port also to 9999 in C:\Users\Ateeq Khaliq\GlassFish_Server\glassfish\domains\domain1\config file.

我也在 C:\Users\Ateeq Khaliq\GlassFish_Server\glassfish\domains\domain1\config 文件中将端口更改为 9999。

How can I fix this?

我怎样才能解决这个问题?

回答by imanis_tn

Its seem to be a Bugin Netbeans if you have alraidy found a solution please let me know.

如果您已经找到解决方案,它似乎是Netbeans 中的一个错误,请告诉我。

回答by user3245747

I had the exact same problem and the way I solved it was to delete the glassfish, tomcat7 and tomcat 8 servers from my IDE. I then deleted their folders on my hard disk and reinstalled the glassfish alone. Everything worked fine after that.

我遇到了完全相同的问题,我解决的方法是从我的 IDE 中删除 glassfish、tomcat7 和 tomcat 8 服务器。然后我删除了硬盘上的文件夹并单独重新安装了 glassfish。之后一切正常。

回答by Franklin Ospino

Change this

改变这个

enter image description here

在此处输入图片说明

the solution is change the host configuration

解决方案是更改主机配置

回答by user8240019

If Netbeans is blocked by Firewall this happens. Make sure your Antivirus firewall is not blocking NetBeans. Grant NetBeans full access to act as a server (This is also asked when you start NetBeans).

如果 Netbeans 被防火墙阻止,则会发生这种情况。确保您的防病毒防火墙没有阻止 NetBeans。授予 NetBeans 完全访问权限以充当服务器(启动 NetBeans 时也会询问此问题)。

Then you should be able to start your server through NetBeans

然后您应该能够通过 NetBeans 启动您的服务器

回答by Ahmed Mabrouk

remove glassfish server from Netbeans and added another one click Tools-servers select your server and click remove servers and click add servers change the domain name and change port from 8080 to 8090 as you like. restart Netbeans

从 Netbeans 中删除 glassfish 服务器并添加另一个单击工具-服务器选择您的服务器并单击删除服务器并单击添加服务器更改域名并将端口从 8080 更改为 8090。重新启动 Netbeans