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
GlassFish Server: Administrator port is occupied by null
提问by David
I tried to start glassfish
server 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
回答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 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