The Tomcat Administration tool, also known as admintool, configures the behavior of the Tomcat JSP container. You can save the changes persistently that you made to the Tomcat container by using the admintool. This ensures that the changes are in effect when the Tomcat server restarts. Otherwise, the changes remain effective during the current session only.
Running the Admintool
To run the admintool, you need to start Tomcat by executing the following command at the command prompt:
After you start Tomcat, type the following address in the address bar of your Web browser:
The login interface to the admintool is displayed in Figure.
The Login Interface of Tomcat
As you can see, you need to provide your username and password. A user can be assigned the role of admin, manager, and provider. By default, the user is assigned to all three roles. The username and password are specified in the tomcat-users.xml file. The tomcatusers. xml can be found at the <JWSDP_HOME>/conf directory. A sample tomcat-users.xml is shown here:
After successful logon, the interface, as shown in Figure, is displayed.
The Main Interface of Tomcat
Notice that in Figure, the admintool provides you with access to various elements that can be configured. These elements are listed in the left pane of the interface. These elements are one of three main categories:
The interface to configure Tomcat server properties is displayed in Figure.
The Server Properties Page of Tomcat
In the interface, as shown in Figure, you can perform and save the changes. You have the option of saving the changes either for the current session or persistently. To save the 320 changes for the current session, you need to click the Save button. To save the changes persistently, you need to click the Commit Changes button. When you click the Commit Changes button, the changes are saved to the <JWSDP_HOME>/conf/server.xml file.
The elements in the Resources group represent global JNDI resources. You can configure the following resources by using the admintool:
The interface to configure environment entries is displayed in Figure.
The Environment Properties Page
Authenticating Users to Access Web Services
When you're designing Web services, you need to decide the types of users who will access them. Not all users should be given the right to access all services. The Tomcat user authentication service includes the following:
The User page of the Tomcat server is displayed in Figure.
The User Page of the Tomcat Server
You can use this interface to create new users or delete existing ones. You can do this by selecting the appropriate option from the Edit Existing User Properties list box, shown in Figure.
The Edit Existing User Properties List Box
If you select the Create New User option from the drop-down list, the User Properties interface is displayed in the right pane of the admintool interface, as shown in Figure.
The Interface for Creating New Users
You can specify user details in the screen displayed in Figure. When you save the changes, the tomcat-users.xml file is modified, as shown in the following code:
After saving the changes, you can log out of the admintool by clicking on the Log Out button.
XML Related Interview Questions
|Soap Tool Interview Questions||HTML Interview Questions|
|PHP Interview Questions||ASP.NET Interview Questions|
|PHP5 Interview Questions||Java Interview Questions|
|CSS Interview Questions||XSLT Interview Questions|
|Java XML Interview Questions||XMLHttpRequest (XHR) Interview Questions|
|ebXML Interview Questions||XML DOM Interview Questions|
|XML-RPC Interview Questions||XSD Interview Questions|
|Soap Web Services Interview Questions||XSL Interview Questions|
|Xml Publisher Interview Questions|
Basics Of Xml
Basics Of Web Services
Introduction To Soap
Introduction To Uddi
Introduction To Wsdl
Creating A Web Service Using The Microsoft Soap Toolkit
Building Web Applications On The .net Platform
Creating An Asp.net Web Service
Creating A Web Service From An Interface
Introduction To The Atl Server
Creating A Web Service Using The Atl Server Library
Design And Creation Of The Knowledge Share Web Service
Introduction To Java Xml Technologies
Developing Java Web Services
Design And Creation Of A Web Service Using The Ibm Toolkit
Introduction To Mobile Applications
Creating A Mobile Application That Consumes A Web Service
Web Services Development With Jdeveloper
Creating Web Services Using Perl
Integration Of Xml Web Services With The Office Xp And Sql
Server 2000 Toolkits
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.