title: GlassFish Server: Administrator port is occupied by null
body: <p>I tried to start <code>glassfish</code> server via the Netbeans IDE but it showed this error:</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>I have changed the port also to 9999 in C:\Users\Ateeq Khaliq\GlassFish_Server\glassfish\domains\domain1\config file.</p>
  
  <p>How can I fix this?</p>