The Measure Authoring Tool (MAT) was designed using many open source products including, the Google Web Toolkit (GWT) framework, Java JDK, MySQL, and Eclipse. GWT allows a developer to write client side code in Java and GWT converts it to JavaScript. The MAT uses MySQL as its backend database server, and the IDE is Eclipse/Intellij for Java EE Developers.
Due to the use of these open source products, a working knowledge of Java development and some research into how the products work with each other in your environment may be necessary. Research from discussions on product forums, help documents, internet searches and knowledge of the local environment where the MAT will be running may all need to be checked if there are errors during the install.
- The application has not been tested with version above Java 1.8; (OPEN JDK is fine) please ensure this version is in the environment.
- Verify that
JAVA_HOME
andPATH
system variables are pointing to the proper folder(s). - For example, in a Windows environment, the
JAVA_HOME
(Environment Variables under Advanced System Settings ( should point to the Java SDK 1.8.x folder andPATH
should point to the Java 1.8.x/bin.
- Install and Configure Maven (3.6.X): https://maven.apache.org/install.html
Three dependencies that need to be installed locally for the Measure Authoring Tool project to work. You can use the following commands to install them. For more information on this command, check out this documentation.
From the root of the git MAT project issue these 3 commands
mvn install:install-file -Dfile=lib/CQLtoELM-1.4.6.54.jar -DgroupId=mat -DartifactId=CQLtoELM -Dversion=1.4.6.54 -Dpackaging=jar
mvn install:install-file -Dfile=lib/vsac-1.0.jar -DgroupId=mat -DartifactId=vsac -Dversion=1.0 -Dpackaging=jar
mvn install:install-file -Dfile=lib/vipuserservices-test-client-1.0.jar -DgroupId=mat -DartifactId=vipuserservices -Dversion=1.0 -Dpackaging=jar
After running the two commands, right click on the Measure Authoring Tool project -> Maven -> Update Project (ensure force update is checked) -> Ok.
- Install MySQL (MAT currently has been tested withj MySQL Community Version 5.7) available from MySQL
- Run the MySQL community server installer for your operating system and the MySQL workbench (which comes with the download).
- Create a new MySQL Connection to the database. Note: Make sure to keep track of the username, password, url, and port you used as you will need this later.
- From the MAT Code base, find the
mat_schema.sql
file and then execute the script in the database that was just created.
(Note this script is from a dump and drops and create a schema calledMAT_APP_BLANK
)
Download tomcat 9 - https://tomcat.apache.org/download-90.cgi
Add the Resource to the /apache-tomcat-9.X.X/conf/context.xml file. Match the userName and password to match your mysql configuration.
<Resource name="jdbc/mat_app_tomcat"
cachingAllowed="true"
cacheMaxSize="1000000"
auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
testWhileIdle="true"
testOnBorrow="true"
testOnReturn="false"
validationQuery="SELECT 1"
validationInterval="30000"
timeBetweenEvictionRunsMillis="30000"
maxActive="100"
minIdle="10"
maxWait="10000"
initialSize="10"
removeAbandonedTimeout="60"
removeAbandoned="true"
logAbandoned="true"
minEvictableIdleTimeMillis="30000"
jmxEnabled="true"
jdbcInterceptors="org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;
org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer"
username="mat"
password="mat"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/MAT_APP_BLANK"/>
Copy mysql jdbc to tomcat lib directory.
cp ~/.m2/repository/mysql/mysql-connector-java/5.1.6/mysql-connector-java-5.1.6.jar /apache-tomcat-9.X.X/lib
mvn clean install
you should see BUILD SUCCESS
[Eclipse] todo
Note: If MAT is to be run on an application server, the developer will need to run the build to create a .war file.
- Run
mvn clean install
- After the build has run, the file is placed into a target folder under MAT as follows:
mat/target/MeasureAuthoringTool.war
To login to MAT, open MySQL Workbench and run the following queries:
SELECT * FROM USER where USER_ID='Admin'
Look at the LOGIN_ID column, the value there is your UserID. The password default is ‘gargleBlaster_10’.- Navigate to the MAT log in page GUI and use the UserID and password from the previous step and log in to MAT.
- Once logged in, navigate to the [Mat Account] tab and enter the Admin user details under the [Personal Information] tab and the [Security Questions] tab to setup user’s security questions.
- To change the password to something new, use the [Password] tab.
- To create users an email is sent and this must be configured to obtain user names and passwords.