Change Configuration

In this section, you will apply few configuration changes to the Tomcat server which was deployed in the Eclipse IDE.

  1. Double click on the blue link “No servers are available. Click this link to create a new server”, under Servers.

Servers Window

  1. Increase start time limit under timeouts to 200 seconds. Select File -> Save.

Timeout Seconds

  1. Click on the Open launch configuration -> Arguments tab.
    • Add new JVM argument (-Dlogback.ContextSelector=JNDI), delimited by space with previous parameter.
    • Click Apply -> OK

JNDI Parameter

  1. Now, add external dependencies to the Murach application

    • Select Modules -> click Add External Web Modules button
    • Add the following three dependencies located at C:\Users\Administrator\Documents\Old-WorkShop\dependencies
Path Document base
/gapwalk-application C:\Users\Administrator\Documents\Old-WorkShop\dependencies\gapwalk-application-3.0.0-b1902.war
/jac C:\Users\Administrator\Documents\Old-WorkShop\dependencies\jac-3.0.0-b1902.war
/bac C:\Users\Administrator\Documents\Old-WorkShop\dependencies\bac-3.0.0-b1902.war

External Dependencies

  1. Copy application configuration folders to the Tomcat default server folder as follows:

    • Copy and paste scripts folder from Murach-Forward-service under src/main/resources to C:\BluAge\Cobol2SpringBoot

    • Create new folder config inside C:\BluAge\Cobol2SpringBoot

    • Copy and paste application.yml, logback-Murach-Forward files from Murach-Forward-service under src/main/resources to config folder under C:\BluAge\Cobol2SpringBoot

Config files

  1. Replace existing DB endpoint with Aurora PostgreSQL endpoint as follows:

    • From the Package explorer, select Servers -> Tomcat v9.0 Server at localhost -> server.xml
    • Replace:
      • localhost with Aurora PostgreSQL DB endpoint captured in the chapter 3 (Create Target DB)
      • Password: VerySecret with postgres
      • Database name: murach with murach_db
  2. Start the Tomcat server from the Eclipse IDE as follows.

    • Select the server from IDE. Click right mouse button and then run below options.
      • Clean
      • Clean Tomcat WorkDirectory
      • Start

Click Start

As a best practice, clear the server temporary files through ‘Clean’ & ‘Clean Tomcat WorkDirectory’ before starting the server.

Server Started

  1. Wait couple of minutes for the server to start successfully. Server status should be in a Started state with Successful message in Console.