Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 17 Next »

The ServiceManager installation bundle includes the Tomcat application server.  Two applications included with the Tomcat distribution are its web-based administration and management applications.  These allow the user to perform various administration (of Tomcat) and management (of specific web applications) functions.

Assuming Tomcat has been installed using its default settings, the Tomcat installation home page is located at http://<machine-address>:8080.  Specifying this URL within a browser will result in the home page being displayed, note the two links "Tomcat Administration" and "Tomcat Manager" in the left hand menu: 

As noted at the bottom of the preceding page fragment, access to the administration and manager functions is controlled by Tomcat itself and requires entries specifying within the tomcat-users.xml file, which is located in the SERVICEManager/tomcat/conf directory.

 In order to use these applications the roles "admin" and "manager" needs defining, along with at least one user with those roles.

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <role rolename="manager"/>
  <role rolename="admin" />
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="role1" password="tomcat" roles="role1"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="admin" password="sp123" roles="manager,admin"/>
</tomcat-users>

Once the above change has been made, and Tomcat restarted, the user may now access Tomcat Manager from the left hand menu. Successful authentication will result in a page similar to the following being rendered:

  • No labels