What is an Application Server?

An application server is a piece of software that serves applications through the internet to provide a service.
Java EE Application Servers do this by implementing the Java EE Specification. Glassfish is a Java EE Application Server.