[英]GlassFish Server: Administrator port is occupied by null
I tried to start glassfish
server via the Netbeans IDE but it showed this error:我尝试通过 Netbeans IDE 启动
glassfish
服务器,但显示此错误:
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?我怎样才能解决这个问题?
netstat -aon | netstat -aon | find ":4848" |
查找 ":4848" | find "LISTENING"
找到“聆听”
Kill the process that is using your Administrator port杀死正在使用您的管理员端口的进程
如果您已经找到解决方案,它似乎是 Netbeans 中的一个错误,请告诉我。
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.我遇到了完全相同的问题,我解决的方法是从我的 IDE 中删除 glassfish、tomcat7 和 tomcat 8 服务器。 I then deleted their folders on my hard disk and reinstalled the glassfish alone.
然后我删除了硬盘上的文件夹并单独重新安装了 glassfish。 Everything worked fine after that.
之后一切正常。
If Netbeans is blocked by Firewall this happens.如果 Netbeans 被防火墙阻止,则会发生这种情况。 Make sure your Antivirus firewall is not blocking NetBeans.
确保您的防病毒防火墙没有阻止 NetBeans。 Grant NetBeans full access to act as a server (This is also asked when you start NetBeans).
授予 NetBeans 完全访问权限以充当服务器(启动 NetBeans 时也会询问此问题)。
Then you should be able to start your server through NetBeans然后您应该能够通过 NetBeans 启动您的服务器
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.从 Netbeans 中删除 glassfish 服务器并添加另一个单击工具 - 服务器选择您的服务器,然后单击删除服务器并单击添加服务器更改域名并将端口从 8080 更改为 8090。 restart Netbeans
重新启动 Netbeans
它有一个非常简单的解决方案,只需在您的机器中重新启动 Java 进程,您就可以开始使用了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.