...
The installation process is divided into various steps:
Step 1 | Rename and deploy the .WAR file on your application server |
---|---|
Step 2 | Configure your deployed .WAR file |
Step 3 | Install the license key |
Step 4 | Restart Tomcat and test connection |
Step 5 | Configure user authentication |
Step 6 | First login and become admin - ≥ 2.1 only |
Step 7 | Configure roles |
Step 8 | Generate snapshot data |
Step 9 | Configure data authorization |
...
Expand | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
context.xml file configuration When the .WAR has been deployed you now need to configure the context.xml file to tell the web application where the Dashboard/Measure schemas are stored. This file is located here:
Instructions for Tomcat 8 / 8.5 / 9 Open the context.xml file (as detailed above) with an editor. By default, the file will contain an uncommented template as follows - this is tailored for connections to Dashboard/Measure schemas located on a CAST Storage Service / Postgres instance running with port 2280 using Tomcat 8 / 8.5 / 9. If you are only configuring access to one type of schema, you should comment the other type:
Following any changes you make, save the context.xml file and then restart your application server so that the changes are taken into account.
Instructions for Tomcat 7 Open the context.xml file (as detailed above) with an editor. By default, the file will contain an uncommented templates for Tomcat 8 / 8.5 / 9. You need to comment these template by adding <!-- and --> around the section:
Now locate the Tomcat 7 template - this is located at the end of the file:
Copy the Tomcat 7 for CSS without connection pool mode template into uncommented white space. If you need to reference both a Dashboard and Measure schema, copy the template twice:
Following any changes you make, save the context.xml file.
Configuring access to multiple Dashboard schemas If you would like to configure access to multiple Dashboard schemas for use with your Engineering Dashboard, please do as follows:
Connection pooling It is possible to modify the connection configuration for the Engineering Dashboard to pool multiple Dashboard schemas in one resource "domain". In other words, you no longer have to configure one resource (in the context.xml) per Dashboard schema, instead, one resource (in the context.xml) can function for multiple Dashboard schemas. Please see CAST Dashboard Service schema connection configuration pooling for more information. |
For CAST RestAPI 2.x
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
Modify application.properties When the .WAR has been deployed you now need to configure the application.properties file to tell the web application on which
Locate the following section in the file:
|
For CAST RestAPI 2.x
Expand | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Modify application.properties When the .WAR has been deployed you now need to configure the application.properties file to tell the web application on which CAST Storage Service/PostgreSQL instance the Dashboard/Measure schemas are stored. This file is located here:
Locate the following section in the file:
If all your Dashboard/Measure schemas are located on one single CAST Storage Service/PostgreSQL instance then you need to modify the
If your Dashboard/Measure schemas are located on multiple CAST Storage Services/PostgreSQL instances, you need to add in the additional servers as shown in the example below:
Save the file before proceeding.
Modify domains.properties You now need to configure the domains.properties file which provides a link between the CAST Storage Services/PostgreSQL instances defined in the application.properties file and the Dashboard/Measure schemas containing the relevant snapshot data. This file is located here:
This file is delivered empty as shown below:
For each schema that you need to access via the RestAPI, add one line to the file ensuring that there are no empty lines:
For example, for one Dashboard schema called "MEUDON_CENTRAL" and one Measure schema called "MEUDON_MEASURE" stored in the CAST Storage Service/PostgreSQL instance defined in Resource1 in the application.properties file, add the following:
Save the file before proceeding. Modify application.properties to define connection to CSS/PostgreSQL for the roles/permissions schema - ≥ 2.1 only In ≥ 2.1 only, an interface exists to manage User roles - 2.x and above and Data authorization - 2.x and above - this interface stores all its records in a dedicated schema on a CAST Storage Service/PostgreSQL instance. This instance does not need to be the same as used for your AIP schemas (Dashboard/Measure schemas), however, the required schema is small and therefore CAST recommends using an existing CAST Storage Service/PostgreSQL instance to host it. The schema is created automatically when you start up your Dashboard deployment if it does not already exist. The application.properties file contains a section dedicated to this schema - this file is located here:
Locate the following section in the file:
Change the line
Save the file before proceeding. This will ensure that a schema called "cast_dashboards" is created on the target CAST Storage Service/PostgreSQL instance when you start the web application.
|
Anchor | ||||
---|---|---|---|---|
|
...