Cocoon (because of the Java awt library I read) requires X-Windows to be present. Fortunately there is a way to simulate X-Windows by running Xvfb. Install the XFree86-Xvfb-4.1.0-3 RPM from the Redhat 7.2 CD and add the following lines to the Tomcat startup file /etc/init.d/tomcat4:
pgrep Xvfb >/dev/null
if [ $? -ne 0 ]; then
echo "Starting X emulator Xvfb ..."
Xvfb :0 -screen 0 800x600x8 &
fi
export DISPLAY=0:0
so that we don't have to do this manually. For the sake of testing you can simply execute the bold lines above to avoid another Tomcat restart.