When I try to start the Glassfish server an Information window appears saying: " Could not connect to admin listener for GlassFish Server 3.1.2 Verify that Netbeans can make outbound connections to localhost :4848 ".
And if I close that window I can see that there are opened lots of windows with: Networtk communication problem " Could not establish a reliable connection with localhost (localhost:4848) Error message: Permission Denied: connect ".
See these images:
http://postimage.org/image/9po31npo7/
http://postimage.org/image/pdq5c32m3/
FIXED :
The problem was Java. Not Netbeans nor glassfish. The Java engine needed to be reinstalled.