1 / 13

Apache Tomcat

Apache Tomcat. Vannucci Roberto (5BM), De Nardin Axel (5AM). Apache Tomcat. http://tomcat.apache.org “Apache Tomcat is an open source software implementation of the Java Servlet and Java Server Pages (JSP) technologies.” Comunemente: servlet engine. Breve Storia.

jamuna
Download Presentation

Apache Tomcat

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Apache Tomcat Vannucci Roberto (5BM), De Nardin Axel (5AM)

  2. Apache Tomcat http://tomcat.apache.org “Apache Tomcat is an open source software implementation of the Java Servlet and Java Server Pages (JSP) technologies.” Comunemente: servlet engine

  3. Breve Storia Inizialmente sviluppato da Sun Microsystem In seguito Open Source Licenza Apache Interamente programmato in Java

  4. Funzionamento Resta in attesa su una porta (generalmente 8080) Quando riceve la prima richiesta di una servlet, crea un’istanza della classe Ogni richiesta viene gestita con un thread diverso

  5. Installazione Necessaria sul server Java Virtual Machine Debian e derivate (es. Ubuntu): # apt-get install tomcat7 Windows: - Download eseguibile - Wizard

  6. Cartelle (1) - $CATALINA_HOME Debian e derivate (es. Ubuntu) /var/lib/tomcat7 /var/lib/tomcat7/conf --> /etc/tomcat7 Windows X:\Program Files\Apache Software Fondation\Tomcat 7.0 (X: directory di installazione del S/O)

  7. Cartelle (2)

  8. Cartelle (3)

  9. Tomcat Manager Generalmente disponibile al link http://<server>:8080/manager Permette Start/Stop/Undeploy di WebApps Accesso tramite credenziali del file $CATALINA_HOME/conf/tomcat-users.xml

  10. Deployment di una servlet • Programmazione delle classi della Servlet in java • Caricamento dei file sul server • Compilazione dei sorgenti con javac • Reload della Servlet tramite Tomcat Manager

  11. Compilazione javac –classpath $CATALINA_HOME/common/lib/servlet-api.jar <classe>.java (classpath definibile con variabile d’ambiente $CLASSPATH) Es. # export CLASSPATH = /var/lib/tomcat7/common/lib/servlet-api.jar

  12. Links Download slidepresentazione (PDF) http://bobvann.noip.me/edu/slides/140515-p2.pdf

More Related