Glassfish Application Server

GlassFish is an open source application server which implements the Java EE platform. This includes the latest versions of technologies such as such as JavaServer Pages(JSP), JavaServer Faces(JSF), Servlet, Enterprise JavaBeans, Java API for Web Services(JAX-WS), Java Architecture for XML Binding(JAXB), Web Services Metadata for the Java Platform, and many other new technologies.

Using Glassfish

wget http://d.ri.mu/installglassfish.sh
bash installglassfish.sh

This installglassfish script should work on most Redhat-, Ubuntu- and Debian-based distros.

The script can install either version 3 or 4 of Glassfish. Glassfish 4.0 is the latest stable version but still pretty new, and requires JDK 7 or greater. Version 3 can use either JDK 6 or 7 so by default the script w/ install JDK 7 if java is not present. If you have other apps still running JDK 6, this would be a good reason to stick the 3.x branch of Glassfish. (Run the script with the '--help' option to get a look at the parameters you can pass to the script).

By default the Glassfish does not run by default on server startup. However, it is
easy enough to do:

You can start/stop/restart the service with: /etc/init.d/glassfish start/stop/restart

You can turn on the service so it runs at bootup: chkconfig --level 3 glassfish on