Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Version 7
CGI
Was designed in the early days of the web
has evolved into a powerful and a useful
model for server-side programming
when a web server receives a CGI request,
it needs to start a script, allow it to run, get
back the results and pass them back to the
web client.
Servlet
Run inside the environment of the web server
the browser can submit a request to the servlet for
execution
developed by Javasoft to support server-side
programming
a parallel to the CGI model
The servlets execute in the JVM loaded by the
Web Server. Its loaded only once, and live until it
is explicitly unloaded.
Results in better performance, higher speed.
Tomcat Administration
Introduction to Tomcat
Tomcat Architecture
Tomcat Directory Structure
Configuration Files
Connectors (mod_jk, mod_proxy)
Integration with Apache
Introduction to Tomcat
Apache Tomcat is a Java-capable HTTP server, which
could execute special Java programs known as Java
Servlet and Java Server Pages (JSP). It is the official
Reference Implementation (RI) for Java Servlets and
JavaServer Pages (JSP) technologies.
Tomcat Evolution
Tomcat Architecture..
Server.xml
web.xml
The web.xml file format is defined in the Java Servlet Specification,* so this file
format will be usedin every servlet-conforming Java servlet container. This file
format is usedin two places in Tomcat: in the CATALINA_BASE/conf directory
and in each web application. Each time Tomcat deploys an application (during
startup or when the application is reloaded), it reads the global conf/web.xml
followedby the WEBINF/web.xml within your web application (if there is one). As
youdexpect, then, settings in the conf/web.xml file apply to all web applications,
whereas settings in a given web applications WEB-INF/web.xml apply only to
that application.
Bin : This directory hold some of the JAR files that are required when starting
Tomcat,
Lib : all the JAR files that the container uses are located
here, this includes Tomcat JAR's and the servlet and
JSP application programming interfaces (API's). Place
your own JAR files here if they will be used across all
your Web applications.
Temp:temporary files.
Most Tomcat configurations are a Apache/Tomcat setup, Apache serving up the static
content and then passing any JSP to Tomcat to process. Tomcat can be integrated with
Apache by using the JK Connector. The JK Connector uses the Apache JSserv Protocol
(AJP) for communications between Tomcat and Apache.
The AJP Connector: The AJP protocol is used for communication between Tomcat and
Apache, the software modules used on Apache are mod_jk or mod_proxy.
Apache Webserver
(OR)
Apache Webserver
Install : Now its time to install the package under the configured installation PREFIX (see
--prefix option above) by running:
$ make install
jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile
logs/mod_jk.log
Thanks ................