A server to which you deploy your applications. During development, you must deploy an application to a server if you want to test it. The IDE installs one deployment server for you, the Glassfish application server, which contains a web server.
A web server provides services to access the Internet, an intranet, or an extranet. It hosts web sites, provides support for HTTP and other protocols, and executes server-side programs such as CGI scripts or servlets.
In the J2EETM architecture, a web server provides services to a web container. For example, a web container typically relies on a web server to provide HTTP message handling. A web server can host one or more web containers.