SlideShare a Scribd company logo
Infinity   1
•   Introduction
•   Download & Install Java S/W Development Kit
•   Download a server (Apache Tomcat)
•   Configure the server
•   Set up development environment
•   Test your setup
•   Establish a deployment method



                        Infinity                  2
• Apache is the most common HTTP Web Server on the
  Internet. It is the Web server used at http://web.njit.edu
• The Tomcat server is a Java-based Web Application
  container which is used to run Servlet and Java Server
  Pages (JSP) Web applications.
• Tomcat has become the reference implementation for
  both the Java Servlets and Java Server Pages
  specifications.




                             Infinity                          3
• Apache Tomcat is used to serve Java Servlets and
  Java Server Pages. It's a complex piece of software
  and though the documentation is very
  comprehensive, it helps to have a good reference
  work to hand.



• It is an open source Java Servlet application server
  used to deploy Java applications after they are built
  with JSP and Servlets. It can be used as a stand-
  alone product or it can be integrated with the
  Apache server.


                          Infinity                        4
Infinity   5
#java –version
#javac –help




                 Infinity   6
• Step1 : Install all the prequistes
• Redhat :
• #yum install java
• Ubuntu :
• #apt-get install java
• Step2 : Download tomcat source package and uncompress it.
  Redhat/Ubuntu
  #cd /opt
  #wget http://www.trieuvan.com/apache/tomcat/tomcat-
  6/v6.0.29/bin/apache-tomcat-6.0.29.tar.gz
  #tar xvfz apache-tomcat-6.0.29.tar.gz
• Step3 : Setup the paths for Catalina and others.
  Setting catalina paths
• Redhat/ubuntu
• CATALINA_HOME=/opt/apache-tomcat-6.0.29
  CATALINA_BASE=/opt/apache-tomcat-6.0.29
                                     Infinity                 7
• bin/sartup.sh : will start the tomcat server
• bin/shutdown.sh : will stop the tomcat server

• By default Apache Tomcat will be hosted on
  localhost : 8080 port by default. So try to access
  the site with web browser
• http://localhost:8080
  or
  http://localhost:8080
  or
  http://systemname:8080

                         Infinity                      8
Infinity   9
Infinity   10
Infinity   11
Infinity   12
• Need to test
  • Static HTML
  • JSP
  • Servlets : A servlet is a Java programming
    language class used to extend the capabilities of
    servers that can be accessed by a host application via
    a request-response programming model
• Test files provided
     • Testing.html, Testing.jsp, TestingServlet.java
• Use default setting (webapps/ROOT)


                              Infinity                       13
Infinity   14
Infinity   15
• Must be compiled, put in appropriate directories, and
  referenced correctly.




                            Infinity                      16
Client       Web Server (Apache)


   Browser                               Tomcat
                   Servlet   JSP page

                    Java Web Container
  Application
    Client
  Client                                  Database
  Container        Session    Entity
                    Bean      Bean
Client Machine       EJB Container
                                         JBoss,
                                         WebSphere,
                                         WebLogic, etc

                             Infinity                17
∞

Infinity   18
Ad

More Related Content

What's hot (20)

Docker 101: Introduction to Docker
Docker 101: Introduction to DockerDocker 101: Introduction to Docker
Docker 101: Introduction to Docker
Docker, Inc.
 
Introduction to spring boot
Introduction to spring bootIntroduction to spring boot
Introduction to spring boot
Santosh Kumar Kar
 
Web container and Apache Tomcat
Web container and Apache TomcatWeb container and Apache Tomcat
Web container and Apache Tomcat
Auwal Amshi
 
Maven ppt
Maven pptMaven ppt
Maven ppt
natashasweety7
 
Maven Introduction
Maven IntroductionMaven Introduction
Maven Introduction
Sandeep Chawla
 
Spring boot
Spring bootSpring boot
Spring boot
Gyanendra Yadav
 
An Introduction To Jenkins
An Introduction To JenkinsAn Introduction To Jenkins
An Introduction To Jenkins
Knoldus Inc.
 
Maven Overview
Maven OverviewMaven Overview
Maven Overview
FastConnect
 
Springboot Microservices
Springboot MicroservicesSpringboot Microservices
Springboot Microservices
NexThoughts Technologies
 
7 Stages of Scaling Web Applications
7 Stages of Scaling Web Applications7 Stages of Scaling Web Applications
7 Stages of Scaling Web Applications
David Mitzenmacher
 
Tomcat Server
Tomcat ServerTomcat Server
Tomcat Server
Anirban Majumdar
 
Node js introduction
Node js introductionNode js introduction
Node js introduction
Joseph de Castelnau
 
Jboss Tutorial Basics
Jboss Tutorial BasicsJboss Tutorial Basics
Jboss Tutorial Basics
Anandraj Kulkarni
 
Oracle WebLogic Server Basic Concepts
Oracle WebLogic Server Basic ConceptsOracle WebLogic Server Basic Concepts
Oracle WebLogic Server Basic Concepts
James Bayer
 
Laravel ppt
Laravel pptLaravel ppt
Laravel ppt
Mayank Panchal
 
Introduction to Spring Boot
Introduction to Spring BootIntroduction to Spring Boot
Introduction to Spring Boot
Purbarun Chakrabarti
 
Jenkins tutorial
Jenkins tutorialJenkins tutorial
Jenkins tutorial
Mamun Rashid, CCDH
 
.Net Core
.Net Core.Net Core
.Net Core
Bertrand Le Roy
 
Microservices
MicroservicesMicroservices
Microservices
SmartBear
 
Java Spring Framework
Java Spring FrameworkJava Spring Framework
Java Spring Framework
Mehul Jariwala
 

Viewers also liked (20)

Introduction to Apache Tomcat 7 Presentation
Introduction to Apache Tomcat 7 PresentationIntroduction to Apache Tomcat 7 Presentation
Introduction to Apache Tomcat 7 Presentation
Tomcat Expert
 
Tomcat and apache httpd training
Tomcat and apache httpd trainingTomcat and apache httpd training
Tomcat and apache httpd training
Franck SIMON
 
Apache Tomcat 8 Application Server
Apache Tomcat 8 Application ServerApache Tomcat 8 Application Server
Apache Tomcat 8 Application Server
mohamedmoharam
 
APACHE TOMCAT
APACHE TOMCATAPACHE TOMCAT
APACHE TOMCAT
Rachid NID SAID
 
Tomcat server
 Tomcat server Tomcat server
Tomcat server
Utkarsh Agarwal
 
Tomcat Configuration (1)
Tomcat Configuration (1)Tomcat Configuration (1)
Tomcat Configuration (1)
nazeer pasha
 
Apache TomEE - Tomcat with a kick
Apache TomEE  - Tomcat with a kickApache TomEE  - Tomcat with a kick
Apache TomEE - Tomcat with a kick
Vishwanath Krishnamurthi
 
Hacking Tomcat
Hacking TomcatHacking Tomcat
Hacking Tomcat
guestc27cd9
 
Apache Presentation
Apache PresentationApache Presentation
Apache Presentation
Ankush Jain
 
Apache web server
Apache web serverApache web server
Apache web server
zrstoppe
 
Apache Server Tutorial
Apache Server TutorialApache Server Tutorial
Apache Server Tutorial
Jagat Kothari
 
Apache ppt
Apache pptApache ppt
Apache ppt
poornima sugumaran
 
Description d'un fichier de prélèvements SEPA minimum
Description d'un fichier de prélèvements SEPA minimumDescription d'un fichier de prélèvements SEPA minimum
Description d'un fichier de prélèvements SEPA minimum
Franck SIMON
 
SMAU 2008: "Vulnerabilità in Tomcat: l'evoluzione della specie"
SMAU 2008: "Vulnerabilità in Tomcat: l'evoluzione della specie"SMAU 2008: "Vulnerabilità in Tomcat: l'evoluzione della specie"
SMAU 2008: "Vulnerabilità in Tomcat: l'evoluzione della specie"
guest2c6b3
 
Delivery of media content of IIS Media Services
Delivery of media content of  IIS Media ServicesDelivery of media content of  IIS Media Services
Delivery of media content of IIS Media Services
SQALab
 
Web весна 2012 лекция 3
Web весна 2012 лекция 3Web весна 2012 лекция 3
Web весна 2012 лекция 3
Technopark
 
Reverse proxy & web cache with NGINX, HAProxy and Varnish
Reverse proxy & web cache with NGINX, HAProxy and VarnishReverse proxy & web cache with NGINX, HAProxy and Varnish
Reverse proxy & web cache with NGINX, HAProxy and Varnish
El Mahdi Benzekri
 
Java SE 8 & EE 7 Launch
Java SE 8 & EE 7 LaunchJava SE 8 & EE 7 Launch
Java SE 8 & EE 7 Launch
Digicomp Academy AG
 
Java Server Faces + Spring MVC Framework
Java Server Faces + Spring MVC FrameworkJava Server Faces + Spring MVC Framework
Java Server Faces + Spring MVC Framework
Guo Albert
 
Nashorn: JavaScript Running on Java VM (English)
Nashorn: JavaScript Running on Java VM (English)Nashorn: JavaScript Running on Java VM (English)
Nashorn: JavaScript Running on Java VM (English)
Logico
 
Introduction to Apache Tomcat 7 Presentation
Introduction to Apache Tomcat 7 PresentationIntroduction to Apache Tomcat 7 Presentation
Introduction to Apache Tomcat 7 Presentation
Tomcat Expert
 
Tomcat and apache httpd training
Tomcat and apache httpd trainingTomcat and apache httpd training
Tomcat and apache httpd training
Franck SIMON
 
Apache Tomcat 8 Application Server
Apache Tomcat 8 Application ServerApache Tomcat 8 Application Server
Apache Tomcat 8 Application Server
mohamedmoharam
 
Tomcat Configuration (1)
Tomcat Configuration (1)Tomcat Configuration (1)
Tomcat Configuration (1)
nazeer pasha
 
Apache Presentation
Apache PresentationApache Presentation
Apache Presentation
Ankush Jain
 
Apache web server
Apache web serverApache web server
Apache web server
zrstoppe
 
Apache Server Tutorial
Apache Server TutorialApache Server Tutorial
Apache Server Tutorial
Jagat Kothari
 
Description d'un fichier de prélèvements SEPA minimum
Description d'un fichier de prélèvements SEPA minimumDescription d'un fichier de prélèvements SEPA minimum
Description d'un fichier de prélèvements SEPA minimum
Franck SIMON
 
SMAU 2008: "Vulnerabilità in Tomcat: l'evoluzione della specie"
SMAU 2008: "Vulnerabilità in Tomcat: l'evoluzione della specie"SMAU 2008: "Vulnerabilità in Tomcat: l'evoluzione della specie"
SMAU 2008: "Vulnerabilità in Tomcat: l'evoluzione della specie"
guest2c6b3
 
Delivery of media content of IIS Media Services
Delivery of media content of  IIS Media ServicesDelivery of media content of  IIS Media Services
Delivery of media content of IIS Media Services
SQALab
 
Web весна 2012 лекция 3
Web весна 2012 лекция 3Web весна 2012 лекция 3
Web весна 2012 лекция 3
Technopark
 
Reverse proxy & web cache with NGINX, HAProxy and Varnish
Reverse proxy & web cache with NGINX, HAProxy and VarnishReverse proxy & web cache with NGINX, HAProxy and Varnish
Reverse proxy & web cache with NGINX, HAProxy and Varnish
El Mahdi Benzekri
 
Java Server Faces + Spring MVC Framework
Java Server Faces + Spring MVC FrameworkJava Server Faces + Spring MVC Framework
Java Server Faces + Spring MVC Framework
Guo Albert
 
Nashorn: JavaScript Running on Java VM (English)
Nashorn: JavaScript Running on Java VM (English)Nashorn: JavaScript Running on Java VM (English)
Nashorn: JavaScript Running on Java VM (English)
Logico
 
Ad

Similar to Apache tomcat (20)

Jsp Tutorial
Jsp TutorialJsp Tutorial
Jsp Tutorial
Adil Jafri
 
Chapter 3 servlet & jsp
Chapter 3 servlet & jspChapter 3 servlet & jsp
Chapter 3 servlet & jsp
Jafar Nesargi
 
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)
slire
 
Basic terminologies for a developer
Basic terminologies for a developerBasic terminologies for a developer
Basic terminologies for a developer
UC San Diego
 
Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music store
ADEEBANADEEM
 
Applet Vs Servlet
Applet Vs ServletApplet Vs Servlet
Applet Vs Servlet
Bharat Sahu
 
192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt
192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt
192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt
sindhu991994
 
Wt unit 3 server side technology
Wt unit 3 server side technologyWt unit 3 server side technology
Wt unit 3 server side technology
PUNE VIDYARTHI GRIHA'S COLLEGE OF ENGINEERING, NASHIK
 
Wt unit 3 server side technology
Wt unit 3 server side technologyWt unit 3 server side technology
Wt unit 3 server side technology
PUNE VIDYARTHI GRIHA'S COLLEGE OF ENGINEERING, NASHIK
 
Enterprise Java, Servlet, JDBC and JSP.pdf
Enterprise Java, Servlet, JDBC and JSP.pdfEnterprise Java, Servlet, JDBC and JSP.pdf
Enterprise Java, Servlet, JDBC and JSP.pdf
PokemonSpyk
 
Servlet.pptx
Servlet.pptxServlet.pptx
Servlet.pptx
SenthilKumar571813
 
Servlet.pptx
Servlet.pptxServlet.pptx
Servlet.pptx
Senthil Kumar
 
Servlet and JSP
Servlet and JSPServlet and JSP
Servlet and JSP
Gary Yeh
 
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.pptLecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
KalsoomTahir2
 
WEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptxWEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptx
karthiksmart21
 
TOMCAT WEB SERVER TECHNICAL BY SAIKIRAN PANJALA
TOMCAT WEB SERVER TECHNICAL BY SAIKIRAN PANJALATOMCAT WEB SERVER TECHNICAL BY SAIKIRAN PANJALA
TOMCAT WEB SERVER TECHNICAL BY SAIKIRAN PANJALA
Saikiran Panjala
 
Asif
AsifAsif
Asif
Shaik Asif
 
AJppt.pptx
AJppt.pptxAJppt.pptx
AJppt.pptx
SachinSingh217687
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
Nitin Pai
 
Web servers
Web serversWeb servers
Web servers
Kuldeep Kulkarni
 
Ad

More from Shashwat Shriparv (20)

Learning Linux Series Administrator Commands.pptx
Learning Linux Series Administrator Commands.pptxLearning Linux Series Administrator Commands.pptx
Learning Linux Series Administrator Commands.pptx
Shashwat Shriparv
 
LibreOffice 7.3.pptx
LibreOffice 7.3.pptxLibreOffice 7.3.pptx
LibreOffice 7.3.pptx
Shashwat Shriparv
 
Kerberos Architecture.pptx
Kerberos Architecture.pptxKerberos Architecture.pptx
Kerberos Architecture.pptx
Shashwat Shriparv
 
Suspending a Process in Linux.pptx
Suspending a Process in Linux.pptxSuspending a Process in Linux.pptx
Suspending a Process in Linux.pptx
Shashwat Shriparv
 
Kerberos Architecture.pptx
Kerberos Architecture.pptxKerberos Architecture.pptx
Kerberos Architecture.pptx
Shashwat Shriparv
 
Command Seperators.pptx
Command Seperators.pptxCommand Seperators.pptx
Command Seperators.pptx
Shashwat Shriparv
 
Upgrading hadoop
Upgrading hadoopUpgrading hadoop
Upgrading hadoop
Shashwat Shriparv
 
Hadoop migration and upgradation
Hadoop migration and upgradationHadoop migration and upgradation
Hadoop migration and upgradation
Shashwat Shriparv
 
R language introduction
R language introductionR language introduction
R language introduction
Shashwat Shriparv
 
Hive query optimization infinity
Hive query optimization infinityHive query optimization infinity
Hive query optimization infinity
Shashwat Shriparv
 
H base introduction & development
H base introduction & developmentH base introduction & development
H base introduction & development
Shashwat Shriparv
 
Hbase interact with shell
Hbase interact with shellHbase interact with shell
Hbase interact with shell
Shashwat Shriparv
 
H base development
H base developmentH base development
H base development
Shashwat Shriparv
 
Hbase
HbaseHbase
Hbase
Shashwat Shriparv
 
H base
H baseH base
H base
Shashwat Shriparv
 
My sql
My sqlMy sql
My sql
Shashwat Shriparv
 
Linux 4 you
Linux 4 youLinux 4 you
Linux 4 you
Shashwat Shriparv
 
Introduction to apache hadoop
Introduction to apache hadoopIntroduction to apache hadoop
Introduction to apache hadoop
Shashwat Shriparv
 
Next generation technology
Next generation technologyNext generation technology
Next generation technology
Shashwat Shriparv
 
Configure h base hadoop and hbase client
Configure h base hadoop and hbase clientConfigure h base hadoop and hbase client
Configure h base hadoop and hbase client
Shashwat Shriparv
 

Apache tomcat

  • 2. Introduction • Download & Install Java S/W Development Kit • Download a server (Apache Tomcat) • Configure the server • Set up development environment • Test your setup • Establish a deployment method Infinity 2
  • 3. • Apache is the most common HTTP Web Server on the Internet. It is the Web server used at http://web.njit.edu • The Tomcat server is a Java-based Web Application container which is used to run Servlet and Java Server Pages (JSP) Web applications. • Tomcat has become the reference implementation for both the Java Servlets and Java Server Pages specifications. Infinity 3
  • 4. • Apache Tomcat is used to serve Java Servlets and Java Server Pages. It's a complex piece of software and though the documentation is very comprehensive, it helps to have a good reference work to hand. • It is an open source Java Servlet application server used to deploy Java applications after they are built with JSP and Servlets. It can be used as a stand- alone product or it can be integrated with the Apache server. Infinity 4
  • 7. • Step1 : Install all the prequistes • Redhat : • #yum install java • Ubuntu : • #apt-get install java • Step2 : Download tomcat source package and uncompress it. Redhat/Ubuntu #cd /opt #wget http://www.trieuvan.com/apache/tomcat/tomcat- 6/v6.0.29/bin/apache-tomcat-6.0.29.tar.gz #tar xvfz apache-tomcat-6.0.29.tar.gz • Step3 : Setup the paths for Catalina and others. Setting catalina paths • Redhat/ubuntu • CATALINA_HOME=/opt/apache-tomcat-6.0.29 CATALINA_BASE=/opt/apache-tomcat-6.0.29 Infinity 7
  • 8. • bin/sartup.sh : will start the tomcat server • bin/shutdown.sh : will stop the tomcat server • By default Apache Tomcat will be hosted on localhost : 8080 port by default. So try to access the site with web browser • http://localhost:8080 or http://localhost:8080 or http://systemname:8080 Infinity 8
  • 10. Infinity 10
  • 11. Infinity 11
  • 12. Infinity 12
  • 13. • Need to test • Static HTML • JSP • Servlets : A servlet is a Java programming language class used to extend the capabilities of servers that can be accessed by a host application via a request-response programming model • Test files provided • Testing.html, Testing.jsp, TestingServlet.java • Use default setting (webapps/ROOT) Infinity 13
  • 14. Infinity 14
  • 15. Infinity 15
  • 16. • Must be compiled, put in appropriate directories, and referenced correctly. Infinity 16
  • 17. Client Web Server (Apache) Browser Tomcat Servlet JSP page Java Web Container Application Client Client Database Container Session Entity Bean Bean Client Machine EJB Container JBoss, WebSphere, WebLogic, etc Infinity 17