SlideServe
Menu
Préférences
© SlideServe · v2026

Tomcat server

alyssa avatar
10 diapositives · 312 Views · Oct 15, 2014

Request-Response Cycle. C:myjspapp /chapter01/sample00.htm. Local feedback Loop address. http://localhost:8080/ myapp /chapter01/sample00.html. Tomcat server. browser. requested page returned. page displayed. Tomcat Server. Start Server. Request. http://. localhost. :8080/. myapp.

Tomcat server - slide 1
01 / 10Tomcat server
1 / 17

Télécharger la présentation

Tomcat server
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Request-Response Cycle C:myjspapp/chapter01/sample00.htm Local feedback Loop address http://localhost:8080/myapp/chapter01/sample00.html Tomcat server browser requested page returned page displayed

  2. Tomcat Server Start Server Request http:// localhost :8080/ myapp /chapter01/sample00.html protocol is http Server is local Path to file Listens on port 8080 Context defined in Tomcat configuration file

  3. To Start Server Start menu > Program Files >Apache Tomcat 4.0 or use: Tomcat-start-shortcut - on desktop or go to: C:\Program Files\Apache Tomcat 4.0\bin and double-click startup.bat

  4. Tomcat Installation Environment variables help system find things – like Java compiler Configuration file helps Tomcat find things and handle file extensions properly, etc

  5. Tomcat Installation Make sure: Environment variables are defined right. Java is installed. Java version numbers in environment variables match your Java version (like 1.4.0) - even if they differ from Xue Bai

  6. Tomcat Installation Precautions: Path variable - copy it to NotePad (and print) before changing it. - Edit in NotePad copy & check carefully –paste carefully ClassPath variable - add new/editper Xue Bai - include "current directory" in ClassPath .; – dot followed by semi-colon. Context path - add new entry to Tomcat configuration file per Xue Bai Don't skip steps in Xue Bai directions - read precisely – read all pages.

  7. Environment variables They tell the system where to find things Control panel > System > Advanced > System variables Double-click variable name to edit.

  8. semi-colon ! -- no spaces Environment Variables --------c:\j2sdk1.4.0\bin;-------- Path - edit it to include because that's where my Java is located. c:\j2sdk1.4.0\ JAVA_HOME - add newvariable with value: yep! ClassPath - add New/edit variable - see Xue Bai - include "current directory" in ClassPath .; – dot followed by semi-colon.

  9. Request: http:// localhost :8080/ - Tells Apache where to find things. TextPad Configuration file C:\Program Files\Apache Tomcat 4.0\conf "server.xml" or: Start menu > programs > Apache >Configuration > edit Right after: <!-- <Context path="" docBase="ROOT" debug="0"/> --> Pick a name Server looks for files here Insert: <Context path="/myapp" docBase="c:\myjspapp" debug="0" privileged="true"/> myapp /chapter01/sample00.html Server Looks in: c:/myjspapp/chapter01/sample00.html

  10. Request: Request: http:// http:// localhost localhost :8080/ :8080/ myapp /chapter01/sample00.html Server looks in c:/myjspapp If add myapp to configuration: Store your files in: c:/myjspapp/chapter01/ If don't add myapp to configuration file (alternatively): Store your files in: C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\chapter01 chapter01/sample00.html no myapp or anything else Server looks here