Changing Application Name and Port Number

There may be times when you want to change the Mart application name from MartServer to something else. Similarly, you may want to change the port number on which the Web server is running from 18170 to something else. This section gives the procedures to modify the application name and the port number.

This section contains the following topics:

How to Change the Mart Server Application Name and Port Number

How to Change the Mart Server Application Name and Port Number

There may be times when you want to change the Mart application name from MartServer to something else. Similarly, you may want to change the port number on which the Web server is running from 18170 to something else. This section gives the procedures to modify the application name and the port number.

Follow these steps:

  1. Stop Tomcat server and all connections to the server.
  2. If open, close the erwin Mart Configuration dialog.
  3. Back up the "<installation directory>\erwin\Mart Server r9� folder.
  4. Follow these steps and change the port number:
    1. Navigate to the installation folder depending on the architecture of the Mart Server and operating system. Open the Sever.xml file.
      • For a 32-bit Mart Server on a 32-bit operating system, go to:

        "C:\Program Files\erwin\Mart Server r9\Tomcat\conf"

      • For a 32-bit Mart Server on a 64-bit operating system, go to:

        "C:\Program Files (x86)\erwin\Mart Server r9\Tomcat\conf"

      • For a 64-bit Mart Server on a 64-bit operating system, go to:

        "C:\Program Files\erwin\Mart Server r9\Tomcat64\conf"

    2. On Line 70, change 18170 to any port number of your choice. If you have enabled SSL, change the port number (18170) in the below section (shown in green color).
  5. Follow these steps and change the application name
    1. Navigate to the installation folder depending on the architecture of the Mart Server and operating system.
      • For a 32-bit Mart Server on a 32-bit operating system, go to:
        "C:\Program Files\erwin\Mart Server r9\Tomcat\webapps"
      • For a 32-bit Mart Server on a 64-bit operating system, go to:
        "C:\Program Files (x86)\erwin\Mart Server r9\Tomcat\webapps"
      • For a 64-bit Mart Server on a 64-bit operating system, go to:
        "C:\Program Files\erwin\Mart Server r9\Tomcat64\webapps"
    2. Back up the MartServer.war file and the �MartServer� folder to a different computer.
    3. Delete the �MartServer� folder.
    4. Rename MartServer.war to <your application name>.war (any qualified name).
  6. Change the configuration details in the MartConfiguration.config file.

    The file is available in the �C:\Users\<username>\AppData\Local\erwin\Mart Server� folder.

  7. Navigate to the installation folder depending on the architecture of the Mart Server and operating system. Change the URL in the following batch files:
    • For a 32-bit Mart Server on a 32-bit operating system, go to:
      "C:\Program Files\erwin\Mart Server r9\Tomcat\"
    • For a 32-bit Mart Server on a 64-bit operating system, go to:
      "C:\Program Files (x86)\erwin\Mart Server r9\Tomcat\"
    • For a 64-bit Mart Server on a 64-bit operating system, go to:
      "C:\Program Files\erwin\Mart Server r9\Tomcat64"
    • erwin MartAdmin.bat
    • Disable SSL for Tomcat MartServer.bat
    • Enable SSL for Tomcat MartServer.bat
  8. Open the erwin Mart Configuration dialog and go to the Mart Administrator tab. Enter the new port number, new application name and the password, and then click Configure. The Mart is configured with a new application name and the new port number.
  9. Start the MartServer service.
  10. When you log in to Mart from erwin� Data Modeler, ensure that you provide the modified port number and application name in the Connect to Mart dialog. For example, suppose that your new port number is 18172 and the new application name is erwinMartDB. In the Connect to Mart dialog, enter 18172 in the Port field, and erwinMartDB in the Application Name field.