Presentation is loading. Please wait.

Presentation is loading. Please wait.

APACHE TOMCAT WEB SERVER

Similar presentations


Presentation on theme: "APACHE TOMCAT WEB SERVER"— Presentation transcript:

1 APACHE TOMCAT WEB SERVER
TECHNICAL SEMINAR ON APACHE TOMCAT WEB SERVER

2 Introduction Apache Tomcat (or Jakarta Tomcat or simply Tomcat) is an open source servlet container developed by the Apache Software Foundation (ASF). Tomcat implements the Java Servlet and the JavaServerPages (JSP) specifications from Sun MicroSystems.

3 Components CATALINA COYOTE JASPER
Catalina is Tomcat's servlet container In Tomcat, a Realm element represents a "database" of usernames, passwords, and roles (similar to unix groups) assigned to those users. COYOTE Coyote is Tomcat's HTTP Connector component that supports the HTTP 1.1 protocol for the web server or application container. JASPER Jasper is Tomcat's JSP Engine.

4 HOW TO INSTALL APACHE TOMCAT WEB SERVER?

5 Tomcat Home Page

6 Tomcats Download Page

7 First Display of setup Wizard

8 Choosing Features of Tomcat

9 Choosing Installing Location

10 Choosing Port Number ,User Name

11 Choosing the JVM

12 Configure Tomcat

13 FEATURES Implements the Servlet 2.4 and JSP 2.0 specifications
Reduced garbage collection, improved performance and scalability Native Windows and Unix wrappers for platform integration Faster JSP parsing

14 Tomcat directory structure
myApplicationDirectory/ -- this is your top level directory myWebForm.html myJspPage.jsp WEB-INF/ -- must have this directory, named exactly like this lib/ -- mostly for external .jar files classes/ -- must have this directory, named exactly like this com/ -- The com.example.model package directory example/ model/ myModel.class -- in package com.example.model; web/ myServlet.class --in package com.example.web; web.xml -- this is the deployment descriptor, it must have this name

15 web.xml <?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns=" xmlns:xsi=" xsi:schemaLocation= " version="2.4"> <servlet> <servlet-name>Some internal name</servlet-name> <servlet-class>com.example.web.MyServlet</servlet-class> </servlet> <servlet-mapping> <url-pattern>/NameSeenByUser.do</url-pattern> </servlet-mapping> </web-app>

16 Flow The user submits an HTML form
Tomcat finds the servlet based on the URL and the deployment descriptor (web.xml) and passes the request to the servlet. The servlet computes a response and writes an HTML page containing the response. Tomcat returns the HTML page to the user.

17 Alternatives to Tomcat
Sun’s Java Web Server Old, no longer being developed, all in Java Java Web Server Development Kit (JWSDK) Official reference implementation Difficult to install and configure JBoss Open source Opinions vary on how easy it is to install Comes with built-in database

18 REFERENCES http://www.ccl.net/cca/software/UNIX/apache/
tomcat3.1b1-faq.html, READMET1SB.shtml, solaris-t3.2/README.shtml

19 THANK YOU


Download ppt "APACHE TOMCAT WEB SERVER"

Similar presentations


Ads by Google