SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Oracle WebLogic Server Basic Concepts
Oracle WebLogic Server Basic ConceptsOracle WebLogic Server Basic Concepts
Oracle WebLogic Server Basic Concepts
 
Selenium
SeleniumSelenium
Selenium
 
SELENIUM PPT.pdf
SELENIUM PPT.pdfSELENIUM PPT.pdf
SELENIUM PPT.pdf
 
Spring Boot
Spring BootSpring Boot
Spring Boot
 
Spring Boot
Spring BootSpring Boot
Spring Boot
 
Spring Boot in Action
Spring Boot in Action Spring Boot in Action
Spring Boot in Action
 
Jenkins for java world
Jenkins for java worldJenkins for java world
Jenkins for java world
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introduction
 
Spring boot
Spring bootSpring boot
Spring boot
 
Spring MVC Framework
Spring MVC FrameworkSpring MVC Framework
Spring MVC Framework
 
Jenkins
JenkinsJenkins
Jenkins
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automation
 
Java EE Introduction
Java EE IntroductionJava EE Introduction
Java EE Introduction
 
Jboss Tutorial Basics
Jboss Tutorial BasicsJboss Tutorial Basics
Jboss Tutorial Basics
 
Weblogic application server
Weblogic application serverWeblogic application server
Weblogic application server
 
Hibernate Presentation
Hibernate  PresentationHibernate  Presentation
Hibernate Presentation
 
WebSphere Application Server
WebSphere Application ServerWebSphere Application Server
WebSphere Application Server
 
Introduction to Ansible
Introduction to AnsibleIntroduction to Ansible
Introduction to Ansible
 
Jenkins
JenkinsJenkins
Jenkins
 
Selenium
SeleniumSelenium
Selenium
 

Destacado

Introduction to Apache Tomcat 7 Presentation
Introduction to Apache Tomcat 7 PresentationIntroduction to Apache Tomcat 7 Presentation
Introduction to Apache Tomcat 7 PresentationTomcat Expert
 
Tomcat and apache httpd training
Tomcat and apache httpd trainingTomcat and apache httpd training
Tomcat and apache httpd trainingFranck SIMON
 
Apache Tomcat 8 Application Server
Apache Tomcat 8 Application ServerApache Tomcat 8 Application Server
Apache Tomcat 8 Application Servermohamedmoharam
 
Tomcat Configuration (1)
Tomcat Configuration (1)Tomcat Configuration (1)
Tomcat Configuration (1)nazeer pasha
 
Apache Presentation
Apache PresentationApache Presentation
Apache PresentationAnkush Jain
 
Apache web server
Apache web serverApache web server
Apache web serverzrstoppe
 
Apache Server Tutorial
Apache Server TutorialApache Server Tutorial
Apache Server TutorialJagat 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 minimumFranck 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 ServicesSQALab
 
Web весна 2012 лекция 3
Web весна 2012 лекция 3Web весна 2012 лекция 3
Web весна 2012 лекция 3Technopark
 
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 VarnishEl Mahdi Benzekri
 
Java Server Faces + Spring MVC Framework
Java Server Faces + Spring MVC FrameworkJava Server Faces + Spring MVC Framework
Java Server Faces + Spring MVC FrameworkGuo 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
 
Automated Tomcat Management
Automated Tomcat ManagementAutomated Tomcat Management
Automated Tomcat Managementseges
 

Destacado (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 and apache httpd training
Tomcat and apache httpd trainingTomcat and apache httpd training
Tomcat and apache httpd training
 
Apache Tomcat 8 Application Server
Apache Tomcat 8 Application ServerApache Tomcat 8 Application Server
Apache Tomcat 8 Application Server
 
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
 

Similar a Apache tomcat

Similar a 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
 

Más 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