Directories under BASEDIR/smarts/tomcat/webapps contain the web applications served by the Tomcat Servlet Engine. For example, the sample Dashboard viewlets included with VMware Smart Assurance Business Dashboard are installed to the BASEDIR/smarts/tomcat/webapps/templates directory. Each directory under /webapps must contain the JAR, HTML, and configuration files necessary for the web application to run.

You can choose one of the following methods to deploy Dashboard viewlets:

  • Modify the template files under BASEDIR/smarts/tomcat/webapps/templates. You can also add your own new viewlet files to this directory.

  • Create your own viewlets directory under /webapps. You must ensure that the new directory contains the files and directories listed in Files used for viewlets, which can be copied from the templates directory. After you create the new directory and add the necessary files, you need to restart the VMware Smart Assurance Servlet Engine service.

Table 1. Files used for viewlets

File or directory

Description

HTML files

HTML files that specify the layout of viewlets, including the JAR files and configuration parameters.

jcommon-0.7.0.jar

jfreechart-0.9.3.jar

masterpiece.jar

tsgdtj50.jar

tsgetj50.jar

tsglt50.jar

tsgltc50.jar

tsgmtj50.jar

JAR files necessary for displaying VMware Smart Assurance Business Dashboard viewlets. All JAR files are required.

dashboard.properties

[Optional] Properties file to specify parameters that apply to all viewlets. This file must be specified in the HTML using the com.smarts.propertiesFile parameter. “Specifying additional viewlet properties” on page 36 provides additional information about HTML parameters.

viewlet.properties

[Optional] Property file to specify parameters for a specific viewlet. This file must be specified in the HTML using the com.smarts.viewletProperties parameter. “Specifying additional viewlet properties” on page 36 provides additional information about HTML parameters.

WEB-INF

Directory indicates that Tomcat should serve the files contained in this directory upon request. This directory is required by Tomcat.