On Windows 7 I downloaded the \'netbeans-8.0.1-javaee-windows.exe\' installer from this site https://netbeans.org/downloads/. The installer installs GlassFish 4.1, Java 1.8.
you can easily resolve this problem by changing the port number of glassfish.
Go to glassfich configuration File domain.xml which is located under GlassFish_Server\glassfish\domains\domain1\config.
Open this file, then change the following line:
replace 8080 by 9090 for example, then save file and run glassfish again.
it should nicely work.