Cocoon is written in Java and therefore needs a Java Server engine. In this example we will use Jakarta Tomcat from the apache group.
Jakarta Tomcat needs a Java Runtime environment We will download a JDK from sun Do you see a pattern developing here.
We will start by setting up Tomcat as a standalone server. Grab the binaries. Uncompress and install. Check your installation by connecting to http://yourserver.com:8080 you should see the tomcat startup page.
Once we get tomcat listening on port 8080 and we already have apache listening on port 80 we need to integrate the two. This used to be done with mod_jk and before that I believe the tool was apache_jserv. The preferred method now is to use mod_webapp. You will need to grab the mod_webapp source because it is presently under heavy development. I built mod_webapp from source because the precompiled binary raised some potential problems. Build the Module. ./configure and then make. Copy the built "so" into the apache libexec directory. Edit your config file so that apache loads mod_webapp as a dso. once loaded set the Port for apache to use for the WARP requests. And then configure your apache to transfer requests for servlets to the tomcat server. Once configured we are ready to install cocoon