I imagine this is a pretty generic error. I cant seem to find any documentation on it.
I am simply attempting to run a java web project with jsp\'s and beans... using n
If you get errors from glassfish on startup complaining that ports are already in use, and you know they aren't, the problem is almost certainly that your hostname is set incorrectly. Glassfish seems to look up the hostname for the machine and then to bind to a port using that hostname - if your hostname resolves incorrectly then it won't be able to bind and will report that the port is in use.
at the command line try typing 'hostname' to see whether the hostname that's reported is correct. ping it and check that it resolves to the IP address of your machine.
Have a look at your /etc/hosts file (on linux) and check whether everything is ok in there.
Also check the /etc/sysconfig/network file and make sure your hostname is set correctly in there.
I've had the exact same problem as you twice - and both times it's turned out to be a hostname issue. Glassfish really should have better error reporting about this.
As Andrey said, first, in the command line type:
> netstat -aon | find ":80" | find "LISTENING"
Next, kill the task of the result
> taskkill /F /pid 4996
Where 4996 is the pid you get when you type the netstat command. I had the same problem, but the task did not appear in the task manager so I had to use the taskkill command.
I was just encountering this issue. What I did was open my browser, pointed to localhost:8080. It looked like I already had an instance of Glassfish running.
So I then went to localhost:4949 (Glassfish server administration page) clicked on 'server (Admin Server)' in the left pane, then pressed the 'Stop' button.
I tried to deploy the J2EE application once again, this time successfully.
I have faced to this problem(Win Xp and netbeans 7.0) and solved it. It's a NOD32 3.0 antiviris issue which i'm using. To solve it open nod32 antivirus
settings > choose protection against viruses and spyware > choose internet access protection > choose HTTP > choose Web Browsers
Then mark your netbeans IDE in the list of programs with red cross(by double clicking)
P.S. the real path to above settings in nod32 may vary in your environment as I'm using not an English version of antivirus, I've just translated the above path.
you need to know who occupied the port. run in cmd netstat -aon | find ":80" | find "LISTENING"
you will see process id. go to Task Manager and drop it.
In netbeans, go to Tools/Servers and add the glassfish server. Specifically, find the folder of your glassfish installation.