SE452: Manager/Admin [15/24] Previous pageContentsNext page

Tomcat now has some nice administration tools that you can use to help you configure and manage it. The configuration of Tomcat is stored in a few files, all stored in "tomcat_root"/conf. The first file is server.xml. This is used for all Tomcat specific configurations. To edit the configuration using the web based tools, point your browser to http://localhost:8080/admin/frameset.jsp.

To deploy new webapps, start/stop/reload/undeploy them, and monitor their status, point your browser to http://localhost:8080/manager/html.

Both of these are linked off the main tomcat page at http://localhost:8080

To setup a user for these accounts, edit the file "tomcat_home"/conf/tomcat-users.xml with a manager and admin role. Here's an example:


        
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="manager"/>
  <role rolename="admin"/>
  <user username="tomcat" password="tomcat" fullName="Tomcat Admin User" roles="admin,manager,tomcat"/>
</tomcat-users>
        
        

The other file of interest is web.xml. This is the default deployment descriptor settings for all webapps. We'll talk about deployment descriptors more later

Previous pageContentsNext page