See also Restarting the website

From Allen Hopkins' notes at How to install java

The "Java 2 Platform Enterprise Edition" is required to support servlets and JavaServer Pages (JSP) on our website.

Go to http://www.oracle.com/technetwork/java/javaee/downloads/index.html and download the most recent version of GlassFish.

As of January, 2016, this was Oracle GlassFish Server 3.1.2.2.

Download the "Linux/Unix/Mac Zip", which was ogs-3.1.2.2.zip.

Unzip it in /usr/local

Stop the everything, make a link and restart

[root@moog local]# /etc/init.d/gsrc stop
Stopping httpd: ^[[60G[^[[0;32m  OK  ^[[0;39m]
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using CATALINA_OUT:    /usr/local/tomcat/logs/catalina.out
Using JAVA_HOME:       /usr/java
Stopping mysqld:  ^[[60G[^[[0;32m  OK  ^[[0;39m]
[root@moog local]# cd /usr
[root@moog usr]# ls -l j2ee
lrwxrwxrwx 1 root root 21 Oct 19  2012 j2ee -> /usr/local/glassfish3
[root@moog usr]# ln -s /usr/local/glassfish3.1.2.2 j2ee
[root@moog usr]# /etc/init.d/gsrc start
Starting mysqld:  ^[[60G[^[[0;32m  OK  ^[[0;39m]
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using CATALINA_OUT:
Using JAVA_HOME:       /usr/java
Starting httpd: ^[[60G[^[[0;32m  OK  ^[[0;39m]
[root@moog usr]# 
Then check to see if the calendar and workshop registration are working.

Check that tomcat is running a recent version of Java:

[root@moog usr]# ps -auxgww | grep tomcat
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
root      2774  0.0  0.0 103308   868 pts/1    S+   17:33   0:00 grep tomcat
root     26265  3.8  0.2 6238912 238120 pts/1  Sl   17:28   0:12 /usr/java/bin/java -Xms128m -Xmx128m -Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed -classpath /usr/java/lib/tools.jar:/usr/local/tomcat/bin/bootstrap.jar -Dcatalina.base=/usr/local/tomcat -Dcata\
lina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap start
[root@moog usr]# /usr/java/bin/java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
[root@moog usr]# 

Obsolete below here

Download the J2EE SDK version 1.3.1 (or the latest) from http://www.oracle.com/technetwork/java/index.html and install it, per their instructions.
Oct, 2012: For linux, I downloaded Java EE 6 SDK with JDK 7 U7 > java_ee_sdk-6u4-jdk7-linux-x64.sh
I had to install the Oracle version of Java and do

export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_07
If the installation ends up in /usr with a non-version-specific name, rename it to include its version number, and make "/usr/j2ee" be a symbolic link pointing to it.

Java EE 5 SDK Update 5 Notes

12/08: I downloaded "Java EE 5 SDK Update 5 (with JDK 6u7) for Solaris SPARC, English", which was java_ee_sdk-5_05-solaris-sparc.bin. To install, I ran:

/export/home1/root/tools/downloads/java_ee_sdk-5_05-solar
is-sparc.bin -console

Make the following changes:

Installation Directory
Use /usr/j2ee-5_05. We will make a link later
User Name and Password
Use the admin User Name and the same passwd as www
I chose to save the password
Port names
I stuck with the defaults:
Admin Port [4848] {"<" goes back, "!" exits}: 
   HTTP Port [8080] {"<" goes back, "!" exits}: 8080
   HTTPS Port [8181] {"<" goes back, "!" exits}: 
I chose to enable update center
I chose not to update a previous version
Fix up links:
cd /usr
rm j2ee
ln -s j2ee-5_05 j2ee
cd /usr/jdk
rm latest
ln -s /usr/j2ee/jdk latest