The following section offers a short guide to updating the GlobalTaxCenter (GTC).
The delivery package for the GTC application generally comprises one deployment (directory with files, war-file, or similar) and one directory with one or more database scripts.
Once the delivery package has been downloaded you can begin with the installation. Before you begin you should create a database backup, which can be recovered (rollback) should the update fail. When these preparations have been completed you can update the database and the deployment. AMANA recommends that you start with the database and then update the deployment. More detailed information about the individual steps is provided below. 1) Preparatory measures1.1) Stop the web application server- Stop the web application server (e.g. Tomcat) in the usual way using either the command line or the service manager.
- Delete the contents of the “work” directory in the Tomcat installation.
1.2) Making a backup of the old deployment- The deployment currently installed (usually named "\gtc") is to be found in the "\webapps" subdirectory of the web application server.
- Rename this directory (e.g. "\gtc_old") and then move it to a directory outside of the "\webapps" directory.
2) Update the databaseIf SQL scripts are attached to your package, please carry out the following steps: - Start the SQL server management studio of your database server and select the database schema applicable for the GTC application.
- Execute the supplied SQL update scripts sequentially, either in order of file names or versions, in this schema. Apply a user with full permissions for the database.
Example:
- 01_MSSQL_8.3.02_8.4.04.sql
- 02_Insert_Reporting_MSSQL.sql
- etc.
Warning |
---|
title | Database permissions |
---|
| To import the database scripts apply a user with full permissions for the database schema. Otherwise it may not be possible to correctly create or update tables, or the GTC may not be able to access the tables properly during runtime. It is important to check for anomalies in the protocol results. If you find any errors, please get in touch with the AMANA Hotline. |
3) Update the deploymentCopy the new deployment into the "\webapps" subdirectory, i.e. "<installation directory Tomcat>\webapps\gtc\". It may be necessary to unpack the zip archive. As with the currently installed GTC version, the new deployment must be informed which type of database it should connect to. This is done by creating a reference to the correct database (MySql, Oracle, MS SQL) in the central "<gtc-root>\WEB_INF\classes\repository.xml" file. The connection parameters must then be updated in the respective repository_<xyz>.xml. Warning |
---|
title | A note on copying configuration files |
---|
| Avoid simply copying the repository.xml files from the old GTC deployment into the new GTC deployment. This can lead to errors because the content of the repository files can change slightly over time. |
- Modifying the "<gtc-root>\WEB_INF\classes\repository.xml" file:
This is where you inform the GTC what kind of database to connect to. Search for the line: <!ENTITY datasource SYSTEM "repository_mysql.xml"> and if necessary replace the term "mysql" depending on your type of database. If you are using Oracle, type in “oracle”. For an MS SQL database write “mssql” (z.B. <!ENTITY datasource SYSTEM "repository_mssql.xml">). - Copy the connection settings from the "repository_mysql.xml", "repository_oracle.xml" or "repository_mssql.xml" from the previous backup into the directory "<gtc-root>\WEB-INF\classes\" and into the same-named file of the new deployment.
If you know of any other modifications to the deployment (e.g. in the "web.xml" file), please copy these too by editing the respective file. 4) Final steps- Start the web application server in the usual way via the command line or service manager.
- Test your access to the GlobalTaxCenter or ask the department responsible at your company to test the access for you.
- If errors occur in the web application after the update, please contact the AMANA Hotline and send the “gtc_system.log” file from the subdirectory “\log” of the Tomcat installation.
5) Transfer to other instancesIf you are working with different instances (development, test, integration, production, ...) please be careful the you are doing the same steps in each instance. For example: - Your testing and your production environment are working with GTC version 19.00.01.
- Then you update the testing environment, first with version 19.00.03 and some weeks later with version 19.00.07. The production environment is still working with version 19.00.01.
- Now you want to update the production environment. Be careful that you update it first with version 19.00.03 and then with version 19.00.07. So you can be sure, that no database updates are missing.
|