title: Error running Glassfish 3.1.2.2: Address localhost:4848 is already in use
body: <p>I have installed my glassfish on port 4848, then I have a test project in IntelliJ IDEA that contains <code>.jsp</code> files which I want to run on glassfish.I've read a tutorial on how to run an application on glassfish via IntelliJ <a href="http://wiki.jetbrains.net/intellij/Developing_applications_for_GlassFish_Server" rel="nofollow">here</a>, but when I do the job I get the following error:</p>
  
  <pre><code>Error running Glassfish 3.1.2.2: Address localhost:4848 is already in use
  </code></pre>
  
  <p>How to fix this?</p>