Overview

To discover Apache Tomcat, DFM parses the following configuration files:

  • server.xml. This is the main Apache Tomcat configuration file that describes the components of the Tomcat installation, its architecture, and its topology. The file also contains the configuration for global resources.

  • The following script fragment appears in the server.xml file and is the part used by the Apache Tomcat by Shell job to retrieve information for building the CIs:

       <Server port="8505" shutdown="SHUTDOWN">
         <GlobalNamingResources>
           <Resource name="jdbc/GlobalDS"
                type="javax.sql.DataSource"
                driverClassName="com.inet.ora.OraDriver"
                url="jdbc:inetora:labm3mam13:1521:UCMDB"
       maxActive="20" /> </GlobalNamingResources> <Service name="Catalina"> <Connector port="8580" protocol="HTTP/1.1"/> <Engine name="Catalina"> <Host name="localhost" appBase="webapps"> <Cluster"> <Membership mcastAddr="228.0.0.4" mcastPort="45564"/> </Cluster> </Host> <Host name="grabinovic01" appBase="genadiwebapps"> <Membership mcastAddr="228.0.0.4" mcastPort="45564"/>    </Cluster>    </Host>    </Engine>    </Service>    </Server>
  • context.xml. This file defines the application context configuration. Each installed application has a unique URL prefix. This file contains resource configurations for different scopes, depending on the file location.

  • web.xml. This file defines the application configuration, for example, the application display name and the servlets used to process HTTP requests. Currently, DFM uses this file to retrieve the application display name.