I have used glassfish server in netbeans, now I changed to tomcat and when I run my web application that I have created in glassfish gives me the error :
D
check the proxy settings under tools > options in the ide.
selecting no proxy resolved this issue for me.