Web Application Server Apache Tomcat Downloading and Deployment
Web Application Server Apache Tomcat Downloading and Deployment Guide
Apache Tomcat Downloading pre-Installed Package Open the website link http: //tomcat. apache. org When the webpage would be displayed, click on ‘Tomcat 6. x’ link under the Download section
Apache Tomcat Downloading pre-Installed Package Within New page 6. 0. xx Binary Distributions Core zip
Apache Tomcat Downloading pre-Installed Package Right Click on ‘zip’ Save target as
Apache Tomcat Downloading pre-Installed Package Describe the download path where you want to download and define the File name for the download package (leave it as default)
Apache Tomcat Downloading pre-Installed Package Now Once You have downloaded Apache Tomcat … Just copy this zip file (if needed) according to your project requirements, , and simply extract it (unzip) … Apache Tomcat is a Web Application Server, which would contain your web application and you would execute your web application through Apache Tomcat Services …
Apache Tomcat Deployment Demonstration Just for a sample demonstration, let’s say, we move the apachetomcat bundle into E drive of the computer, and extract the zip file
Apache Tomcat Setting Tomcat Environmental Variable Right Click on your “My Computer” Click on “Properties” option System Properties Dialog box would be Displayed click on “Advance” Tab Click on “Environmental Variable”
Apache Tomcat Setting Tomcat Environmental Variable The Environmental Dialogue box would be displayed Under the “User Variable” Section Click on “New” button _____________ “New User Variable” dialogue would be displayed … Set the values as name = TOMCAT_HOME value = <Tomcat_Path> Please note that name is case-sensitive, and value is the path of your Tomcat Installation
Apache Tomcat Directory Structure These are some of the key tomcat directories: • /bin - Startup, shutdown, and other scripts. The *. sh files (for Unix systems) are functional duplicates of the *. bat files (for Windows systems). Since the Win 32 command-line lacks certain functionality, there are some additional files in here. • /conf - Configuration files and related DTDs. The most important file in here is server. xml. It is the main configuration file for the container. • /logs - Log files are here by default. • /webapps - This is where your webapps go.
Apache Tomcat Directory Structure Further exploring the bin subdirectory, , it contains various scripts and files, , but the important files are “startup. bat” and “shutdown. bat” batch files, which starts and stops the Tomcat services … (for convenience, it is recommended to save the shortcut of these two batch files to Desktop, just to avoid browsing through bin folder time and again)
Apache Tomcat Directory Structure Further exploring the webapps sub-folder, following is it’s normal directory structure, this is the place where we normally place (paste) our web-application projects ….
Apache Tomcat Deployment Demonstration Starting the Tomcat Web Application Service Click on the shortcut icon of the startup. bat a new console window would appear and would auto-execute some commands and information … If The Tomcat is configured successfully, the messages within the console window would be ending on a statement like INFO: Server startup in XXXX ms
Apache Tomcat Deployment Demonstration Now Open any browser (IE, Firefox or any other) And type any of the following address http: //localhost: 8080 http: //127. 0. 0. 1: 8080 http: //your_computer_name: 8080 http: //your_computer_ip: 8080 If you are on the same computer machine, where Apache Tomcat is running, all 4 options would work, but the last two are handy, when you are looking to access your web-application from another computer which is having (somehow) access to the computer where Tomcat service is running. .
Apache Tomcat Deployment Demonstration Please note that ROOT folder, under the webapps folder is the default Tomcat Project, which means that if we do not specify which project (placed under the webapps folder) it would by-default access the contents of ROOT folder … and the page displayed would be like following. .
Apache Tomcat Downloading and Deployment Guide Prepared by: Virtual University Open Source Software Community (VOSS Com. ) vosscom@vu. edu. pk VIRTUAL UNIVERSITY OF PAKISTAN
- Slides: 16