SlideShare une entreprise Scribd logo
1  sur  18
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

Contenu connexe

Tendances

Apache Tomcat 8 Application Server
Apache Tomcat 8 Application ServerApache Tomcat 8 Application Server
Apache Tomcat 8 Application Server
mohamedmoharam
 
Web application development with laravel php framework version 4
Web application development with laravel php framework version 4Web application development with laravel php framework version 4
Web application development with laravel php framework version 4
Untung D Saptoto
 

Tendances (20)

Spring ppt
Spring pptSpring ppt
Spring ppt
 
Apache Tomcat 8 Application Server
Apache Tomcat 8 Application ServerApache Tomcat 8 Application Server
Apache Tomcat 8 Application Server
 
Ibm web sphere application server interview questions
Ibm web sphere application server interview questionsIbm web sphere application server interview questions
Ibm web sphere application server interview questions
 
Tomcat and apache httpd training
Tomcat and apache httpd trainingTomcat and apache httpd training
Tomcat and apache httpd training
 
Spring boot Introduction
Spring boot IntroductionSpring boot Introduction
Spring boot Introduction
 
Spring Framework
Spring Framework  Spring Framework
Spring Framework
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
 
Web application development with laravel php framework version 4
Web application development with laravel php framework version 4Web application development with laravel php framework version 4
Web application development with laravel php framework version 4
 
Servlets
ServletsServlets
Servlets
 
Maven
MavenMaven
Maven
 
Spring Boot Tutorial
Spring Boot TutorialSpring Boot Tutorial
Spring Boot Tutorial
 
Maven ppt
Maven pptMaven ppt
Maven ppt
 
Springboot Microservices
Springboot MicroservicesSpringboot Microservices
Springboot Microservices
 
Spring Boot
Spring BootSpring Boot
Spring Boot
 
Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014
 
Spring boot introduction
Spring boot introductionSpring boot introduction
Spring boot introduction
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
 
Introduction to java (revised)
Introduction to java (revised)Introduction to java (revised)
Introduction to java (revised)
 
Spring MVC Framework
Spring MVC FrameworkSpring MVC Framework
Spring MVC Framework
 
Tomcat server
 Tomcat server Tomcat server
Tomcat server
 

En vedette

Apache web server
Apache web serverApache web server
Apache web server
zrstoppe
 
Web весна 2012 лекция 3
Web весна 2012 лекция 3Web весна 2012 лекция 3
Web весна 2012 лекция 3
Technopark
 
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
 

En vedette (20)

Introduction to Apache Tomcat 7 Presentation
Introduction to Apache Tomcat 7 PresentationIntroduction to Apache Tomcat 7 Presentation
Introduction to Apache Tomcat 7 Presentation
 
APACHE TOMCAT
APACHE TOMCATAPACHE TOMCAT
APACHE TOMCAT
 
Tomcat Configuration (1)
Tomcat Configuration (1)Tomcat Configuration (1)
Tomcat Configuration (1)
 
Apache TomEE - Tomcat with a kick
Apache TomEE  - Tomcat with a kickApache TomEE  - Tomcat with a kick
Apache TomEE - Tomcat with a kick
 
Hacking Tomcat
Hacking TomcatHacking Tomcat
Hacking Tomcat
 
Apache Presentation
Apache PresentationApache Presentation
Apache Presentation
 
Apache web server
Apache web serverApache web server
Apache web server
 
Apache Server Tutorial
Apache Server TutorialApache Server Tutorial
Apache Server Tutorial
 
Apache ppt
Apache pptApache ppt
Apache ppt
 
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
 
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"
 
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
 
Web весна 2012 лекция 3
Web весна 2012 лекция 3Web весна 2012 лекция 3
Web весна 2012 лекция 3
 
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
 
Java SE 8 & EE 7 Launch
Java SE 8 & EE 7 LaunchJava SE 8 & EE 7 Launch
Java SE 8 & EE 7 Launch
 
Java Server Faces + Spring MVC Framework
Java Server Faces + Spring MVC FrameworkJava Server Faces + Spring MVC Framework
Java Server Faces + Spring MVC Framework
 
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)
 
Automated Tomcat Management
Automated Tomcat ManagementAutomated Tomcat Management
Automated Tomcat Management
 
Mule management console installation with Tomcat
Mule management console installation with TomcatMule management console installation with Tomcat
Mule management console installation with Tomcat
 
Ansible
AnsibleAnsible
Ansible
 

Similaire à Apache tomcat

Chapter 3 servlet & jsp
Chapter 3 servlet & jspChapter 3 servlet & jsp
Chapter 3 servlet & jsp
Jafar Nesargi
 
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
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
Nitin Pai
 

Similaire à Apache tomcat (20)

Jsp Tutorial
Jsp TutorialJsp Tutorial
Jsp Tutorial
 
Web container and Apache Tomcat
Web container and Apache TomcatWeb container and Apache Tomcat
Web container and Apache Tomcat
 
Chapter 3 servlet & jsp
Chapter 3 servlet & jspChapter 3 servlet & jsp
Chapter 3 servlet & jsp
 
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)
 
Basic terminologies for a developer
Basic terminologies for a developerBasic terminologies for a developer
Basic terminologies for a developer
 
Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music store
 
Applet Vs Servlet
Applet Vs ServletApplet Vs Servlet
Applet Vs Servlet
 
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
 
Wt unit 3 server side technology
Wt unit 3 server side technologyWt unit 3 server side technology
Wt unit 3 server side technology
 
Wt unit 3 server side technology
Wt unit 3 server side technologyWt unit 3 server side technology
Wt unit 3 server side technology
 
Servlet.pptx
Servlet.pptxServlet.pptx
Servlet.pptx
 
Servlet.pptx
Servlet.pptxServlet.pptx
Servlet.pptx
 
Servlet and JSP
Servlet and JSPServlet and JSP
Servlet and JSP
 
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
 
WEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptxWEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptx
 
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
 
Asif
AsifAsif
Asif
 
AJppt.pptx
AJppt.pptxAJppt.pptx
AJppt.pptx
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
Web servers
Web serversWeb servers
Web servers
 

Plus de Shashwat Shriparv

LibreOffice 7.3.pptx
LibreOffice 7.3.pptxLibreOffice 7.3.pptx
LibreOffice 7.3.pptx
Shashwat Shriparv
 

Plus de 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
 
LibreOffice 7.3.pptx
LibreOffice 7.3.pptxLibreOffice 7.3.pptx
LibreOffice 7.3.pptx
 
Kerberos Architecture.pptx
Kerberos Architecture.pptxKerberos Architecture.pptx
Kerberos Architecture.pptx
 
Suspending a Process in Linux.pptx
Suspending a Process in Linux.pptxSuspending a Process in Linux.pptx
Suspending a Process in Linux.pptx
 
Kerberos Architecture.pptx
Kerberos Architecture.pptxKerberos Architecture.pptx
Kerberos Architecture.pptx
 
Command Seperators.pptx
Command Seperators.pptxCommand Seperators.pptx
Command Seperators.pptx
 
Upgrading hadoop
Upgrading hadoopUpgrading hadoop
Upgrading hadoop
 
Hadoop migration and upgradation
Hadoop migration and upgradationHadoop migration and upgradation
Hadoop migration and upgradation
 
R language introduction
R language introductionR language introduction
R language introduction
 
Hive query optimization infinity
Hive query optimization infinityHive query optimization infinity
Hive query optimization infinity
 
H base introduction & development
H base introduction & developmentH base introduction & development
H base introduction & development
 
Hbase interact with shell
Hbase interact with shellHbase interact with shell
Hbase interact with shell
 
H base development
H base developmentH base development
H base development
 
Hbase
HbaseHbase
Hbase
 
H base
H baseH base
H base
 
My sql
My sqlMy sql
My sql
 
Linux 4 you
Linux 4 youLinux 4 you
Linux 4 you
 
Introduction to apache hadoop
Introduction to apache hadoopIntroduction to apache hadoop
Introduction to apache hadoop
 
Next generation technology
Next generation technologyNext generation technology
Next generation technology
 
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
 

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