Professional Documents
Culture Documents
LEVEL – PRACTITIONER
About the Author
Credential Sr Architect
Information:
2
Icons Used
Hands on
Questions Tools Exercise
Best Practices
Demonstration & Industry
Workshop
Standards
3
Objectives
4
Web Server Details
In this session you are going to learn about how to install/ configure and
administer Tomcat Web Server.
5
For The Associates
6
How to Install Tomcat Server
7
How to configure Web server in IDE?
8
How to configure Web server in IDE? (Cont)
9
How to configure Web server in IDE? (Cont)
Note : In case the server version is not found in the list click download additional
server adapters to download the server adapter of your choice.
10
How to configure Web server in IDE? (Cont)
Click browse and select the server installation directory and click finish.
11
Server window after adding a server
The server window will be as shown below with the server you added listed.
Added Server
12
How to modify Server Configuration ?
The server configuration parameters like http port number , JRE in use etc can be
modified by using the window shown below.
In servers view (previous slide) double click on the server to get the below screen.
13
How to start web server in IDE?
In the servers view select the server and click the arrow icon to start the server
The server starting logs can be seen as displayed in the window below
14
How to stop web server in IDE?
In the servers view select the server and click the red color square box to stop
the server
15
How to administer server using external browser.
Step 1 : Change the server location using the server configuration file
Step 2 : Add a graphical user for the server by adding it in the tomcat-users.xml file
16
Step 1: Changing the Server location
Double click the server and open the server configuration file
Modify the server location as shown below.
17
Step 2: Modify tomcat user.xml
Add a graphical user in the tomcat-users.xml file which can be found inside the conf
folder inside the tomcat installation directory.
Example: D:\apache-tomcat-6.0.33\conf
<role rolename="manager-gui"/>
<user username="tomcat" password=“password.123" roles="manager-gui"/>
18
How to open Server Console in Browser?
Open a browser window and access the URL http://localhost:<portnumber>. The following
screen appears in the browser window. Click Tomcat Manager to manage the application in
the server.
19
How to open Server console in Browser? (Cont)
Enter the user name and password you configured in step 2 to log in to the manager
window.
20
Tomcat Manager Window
21
Application deployment in Server
To familiarize the deployment and running of an application import the following zip
file to your SDE.
22
How to start/deploy and run applications
23
How to start/deploy and run applications
24
How to start/deploy and run applications
25
How to Deploy an Application using server console?
Open the Tomcat manager window and load the war file as shown below
26
Lend a Hand – Manually Deploying
Applications in server
For the demo we will first convert our application to a war file and then deploy it manually.
Create the war file of the application using eclipse export option.
Right Click the application File Export War File
27
Lend a Hand – Manually Deploying
Applications in server
Enter the destination for the war file and click finish
28
Lend a Hand –Deploy the
application
29
How to Start/Stop server using command window ?
Information: The server can also be started/stopped using the following .bat files
found the Tomcat server bin directory.
1. Startup.bat – To start the server
2. Shutdown.bat – To Stop the server
30
Advance Java