I have Netbeans IDE version 6.8, and Glassfish version 3.
My glassfish listener is set to port 81, but when I try to run the simplest web application via the Netbenas IDE it
if you are using Glassfish 3.1.1 it may in /home/user/.netbeans/7.1.2/config/GF3_1/domain1/config/domain.xml,Find the 8080 port and replace it with alternate port number.