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:
<network-listener port="8080" protocol="http-listener-1" transport="tcp"
replace 8080 by 9090 for example, then save file and run glassfish again. it should nicely work.[/url]