David
David

Reputation: 99

GlassFish Server: Administrator port is occupied by null

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

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.

How can I fix this?

Upvotes: 1

Views: 15981

Answers (7)

Porfirio Mendez
Porfirio Mendez

Reputation: 11

netstat -aon | find ":4848" | find "LISTENING"

Kill the process that is using your Administrator port

Upvotes: 1

Mahmoud Y. Elatma
Mahmoud Y. Elatma

Reputation: 125

It has a really simple solution, just restart the Java process in your machine and you should be good to go..

Upvotes: 0

Ahmed Mabrouk
Ahmed Mabrouk

Reputation: 1

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

Upvotes: 0

user8240019
user8240019

Reputation: 1

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).

Then you should be able to start your server through NetBeans

Upvotes: 0

Franklin Ospino
Franklin Ospino

Reputation: 11

Change this

enter image description here

the solution is change the host configuration

Upvotes: 1

user3245747
user3245747

Reputation: 937

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.

Upvotes: 0

Anis H
Anis H

Reputation: 1150

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

Upvotes: 0

Related Questions