8. Jakarta Tomcat8.1. What is Tomcat
Tomcat is the successor of jserv which is no longer developed. Tomcat supports the latest jsp and servlet-APIs defined by sun. Unfortunately Tomcat is very difficult to build from source, because it is using its own building-system called "ant". There is also a very long list of prerequisites if you want to build from source. See http://jakarta.apache.org/tomcat/tomcat-4.0-doc/BUILDING.txt for more details - Good luck, and give some feedback to the author. In the meantime the HOWTO is providing some basic support for Tomcat installed from binaries. The Author is searching for some volunteers who tries to build Tomcat from source and tells what steps are required 8.2. Prerequisites8.2.1. Java28.2.1.1. What is Java2Please see java.sun.com Too much for this HOWTO, please see http://java.sun.com/j2se/1.3/docs/relnotes/features.html 8.2.2. Download the binariesGo to http://java.sun.com/j2se/1.3/ [1],choose your platform and follow the steps on the site. 8.3. Download the binariesOrigin-Site: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.18/src/jakarta-tomcat-4.1.18-src.tar.gz 8.3.1. Installing the binaries
To enable the Tomcat manager, you need to modify /usr/local/jakarta-tomcat-4.1.8/conf/tomcat-users.xml add a user »admin« or with the role »manager«. The result should look like this:
Now you should be able to startup tomcat:
You should now be able to connect to: http://localhost:8080/index.jsp 8.4. mod_jk8.4.1. Download the sourceIf you like to have a native interface into your Apache Webserver, you need to build mod_jk with must be downloaded separately here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.18/src/jakarta-tomcat-connectors-4.1.18-src.tar.gz. 8.4.2. Building and installing
8.4.3. CustomizingNow follows the annoying part, the customizing of the config files. First edit /usr/local/jakarta-tomcat-connectors-4.1.18-src/jk/conf/workers.properties, and copy the file to /usr/local/apache/conf I made a sample workers.properties that works with the example JSPs and servlets that comes with the Tomcat distribution. It is based on the sample workers.properties from Tomcat Example 8. workers.properties
Next, you need to configure your apache config file httpd.conf. The following example matches the examples provided by Tomcat.
After restarting Apache, you should now be able to connect to your JSP's via Apache. I.e: http://localhost/examples/jsp/num/numguess.jsp For the further steps like installing your servlets and jsp-files, you are responsible by yourself...
Notes
Linux HOWTO full list |
||||||||||||||||||||
|
This document, LDP HOWTO-INDEX, is copyrighted (c) 1995 - 2002 by Tim Bynum, Guylhem Aznar, Joshua Drake and Greg Ferguson. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is available at http://www.gnu.org/copyleft/fdl.html. If you have questions, please contact the LDP.
Web Design Copyright © 1999-2003. Chrisranjana Software Solutions Pvt Ltd. syndicate rss feed |