HTTP Authentication dialog box

See Also

It would not be safe to ship web servers with default settings that allowed anyone on the Internet to execute them on your server. Therefore, the web servers are shipped with the requirement that anyone who attempts to use them must authenticate themselves, using a username and password with the appropriate role associated with them.

For example, to authenticate yourself when you want to use the Tomcat Manager to deploy your web application, you need a username and password for a user with the "manager" role. This username and password are stored in the tomcat-users.xml file that is in your user directory.

tip  You can only use the usernames and passwords that are defined in the IDE's user directory's tomcat-users.xml file, and not those that are in the IDE's installation directory.

During installation, the IDE generates a user called "ide" that is assigned the "manager" role. This user is created in your user directory's tomcat-users.xml file.

To set the username and password forTomcat server:
  1. In the Services window, right-click the Servers node and choose Add Server.
    The Add Server Instance dialog box opens.
  2. Select the applicable server and click Next.
  3. Browse for the Catalina Home directory. You can also choose to use a private configuration folder.
  4. Enter the username and password you want to use for the server instance. If the user does not exist, click the checkbox to create the user.
  5. Click Finish to add the server instance.
    The new username and password is added to the tomcat-users.xml file.
To get the username and password from your user directory:
  1. Select Help > About from the main menu.
  2. Make a note of the path to the Userdir folder.
  3. In your file system, go to your Userdir and then to the apache-tomcat-6.0.x_base\conf folder.
  4. Open the tomcat-users.xml file and make a note of the password that is defined for the "ide" username.
tip  The username and password are not saved when you enter them in this dialog box. The username and password are only saved if you define them in the Tomcat Web Server's Properties dialog box. To open the Properties dialog box, right-click the Tomcat Web Server's instance node in the Services window and select Properties.
See Also
About Web Applications

Legal Notices