Chapter 8: Web Application Administration In a User

Chapter 8: Web Application Administration In a User Database Realm, the usernames and their supporting information are stored in memory and are initialized at startup from an XML configuration file ( $CATALINA_HOME/conf/tomcat-users.xml) kept on the file system. This file needs to be edited to add a user with a role of manager. In the following entry, the username and password for this role are adminand secret , respectively: Tomcat now needs to be restarted to make it reread the tomcat-users.xml file. To determine whether the manager application setup was successful, browse to the default Tomcat URL ( http:// localhost:8080), and click the Tomcat Manager link, or go directly to the manager application URL http://localhost:8080/manager/html. The user is then prompted for a username and password. After entering the values set in the tomcat-users.xml file, the Web page of the manager application shown in Figure 8-1 should be displayed. Figure 8-1: The Tomcat Web Application Manager Keeping the password for the manager application in clear text may be okay for a development environment, but not suitable for anything else. The Security Considerations section at the end of the chapter addresses this and other security concerns.

For high quality website hosting services please check java web hosting website.

Comments are closed.