The JavaTM Web Services Tutorial
Home
TOC
Index
PREV TOP NEXT
Divider

Using admintool

The Java Web Services Developer Pack includes the Tomcat Web Server Administration Tool, referred to hereafter as admintool for ease of reference. The admintool Web application can be used to manipulate Tomcat while it is running. For example, you can add and/or configure contexts, hosts, realms, and connectors, or set up users and roles for container-managed security.

To start admintool, follow these steps.

  1. Start Tomcat as described in Starting Tomcat.
  2. Start a Web browser.
  3. In the Web browser, point to the following URL:
      http://localhost:8080/admin
     
    
    This command invokes the admin Web application. Before you can use this application you must add your user name/password combination and associate the role name admin with it. The initial user name and password necessary to access this tool are set up during Java WSDP installation. If you've forgotten the user name and password, you can view <JWSDP_HOME>/conf/tomcat-users.xml with any text editor. This file contains an element <user> for each individual user, which might look something like this:
      <user name="adeveloper" password="secret" 
        roles="admin, manager" />
     
    
  4. Log in to admintool using a user name and password combination that has been assigned the role of admin. This user name and password must match the user name and password in the build.properties file.
  5. When you have finished, log out of admintool by selecting Logout from the upper pane.

This section discussing setting up roles, groups, and users using admintool. See , for information on using admintool to create, delete, and/or configure:

Understanding Roles, Groups, and Users

The Tomcat server authentication service includes the following components:

These concepts are addressed in more detail in Managing Roles and Users. More information on admintool is available in .

Adding Roles Using admintool

To set up new roles for container-managed security, follow these instructions. Additions, deletions, and changes made in admintool are written to the tomcat-users.xml file.

  1. Scroll down the left pane of admintool to the User and Group Administration node.
  2. Select Role Administration.
  3. From the Roles List, select Create New Role.
  4. Enter a Role Name and Description, for example Customer or User.
  5. Select Save.

Adding Users Using admintool

To set up new users for container-managed security, follow these instructions. Additions, deletions, and changes made in admintool are written to the tomcat-users.xml file.

  1. Scroll down the left pane of admintool to the User and Group Administration node.
  2. Select User Administration.
  3. From the Users List, select Create New User.
  4. Enter a User Name, Password, and select a Role for the new user. If you select the admin role for the new user, the user will be able to access admintool.
  5. Select Save.
Divider
Home
TOC
Index
PREV TOP NEXT
Divider

This tutorial contains information on the 1.0 version of the Java Web Services Developer Pack.

All of the material in The Java Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.