title: Netbeans and Glassfish Deployment Issue
body: <p>I have written a web application using netbeans which I have always deployed to the Glassfish server through netbeans itself.  Now that I've finished it, I want to be able to run it independently of netbeans, and this was succesful on the first PC I tried it on, I started the glassfish server using "start-domain" command, and my previously deployed service was already there waiting for me.</p>
  
  <p>However I have since tried doing this on another PC.  The service deploys completely fine through netbeans, but when I try starting the glassfish server on its own, the problems start.  For some strange reason netbeans seems to be using a different version of glassfish to me, because if I start the server, and then go to netbeans to deploy the service, I get the following error message:</p>
  
  <pre><code>Starting GlassFish Server 3.1
  GlassFish Server 3.1 Server cannot start. Port is occupied.
  In-place deployment [path]
  Initializing...
  deploy?DEFAULT=[path] failed. Instance is not GlassFish Server 3.1.
  </code></pre>
  
  <p>I only have one version of glassfish installed, and that is 3.1.  In the project settings I have the correct Glassfish server selected, but still, it seems to be running it separately.  Any help would be very much appreciated, because it's confused the heck out of me!</p>