Search code examples
javajspintellij-ideaglassfishport

Error running Glassfish 3.1.2.2: Address localhost:4848 is already in use


I have installed my glassfish on port 4848, then I have a test project in IntelliJ IDEA that contains .jsp files which I want to run on glassfish.I've read a tutorial on how to run an application on glassfish via IntelliJ here, but when I do the job I get the following error:

Error running Glassfish 3.1.2.2: Address localhost:4848 is already in use

How to fix this?


Solution

  • From the error you are getting it seems that a glassish instance is already running on that port and IntelliJ is trying to start up a new one. Did you start your glassfish instance via command line? Maybe you could try starting it up with IntelliJ and see if that works better ...