This tutorial will guide you through setting up Tomcat and Cocoon to serve XML pages, then you will create a DTD, XML file and three XSL stylesheets so that you can view your data in your desktop browser, a cell phone browser and a pdf file.
You can add these lines to the file $TOMCAT_HOME/bin/tomcat.sh just above the first 'if' statement if you do not feel like setting these variable everytime.
That is all you need to do, Tomcat is ready to run. To start Tomcat cd to $TOMCAT_HOME/bin and run:
After a few moments you should see two lines that look like this:
2001-01-26 12:25:02 - PoolTcpConnector: Starting HttpConnectionHandler
12:25:02 - PoolTcpConnector: Starting Ajp12ConnectionHandler
When you see these line Tomcat is running and ready to serve. Open up a browser and go to http://localhost:8080 and run a couple samples to make sure that Tomcat is working properly. Run at least one servlet and one jsp sample. If you get any errors check your environment and restart Tomcat.