Configure Tomcat with Aurora PostgreSQL Endpoint

By default, the Tomcat server (server.xml) is configured with local PostgreSQL database. Now, you need to replace with Aurora PostgreSQL DB endpoint.


  1. Open C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf\server.xml in the Notepad++.

Server.xml with localhost

  1. In the GlobalNamingResources section, replace:
    • localhost with Aurora PostgreSQL endpoint
    • password ‘VerySecret’ with postgres
    • Save and close the server.xml file

Aurora PostgreSQL endpoint was captured in the previous chapter > Create Target Database under Create Aurora PostgreSQL Database section.

Updated Server.xml file with Aurora DB endpoint

  1. Launch the Windows Services. Shortcut can be found either on the taskbar or desktop.

Windows-Services icon

  1. Select Apache Tomcat 9.0 Tomcat9 and click on Stop, then Start Apache Tomcat 9.0 service.

Windows Services

  1. Once restarted, leave few minutes for all components to start and see the applications started running in the Tomcat manager

Tomcat Home Page

If there is a problem, you can investigate the logs at C:\Program Files\Apache Software Foundation\Tomcat 9.0\temp\spring.log. Alternatively, C:\Program Files\Apache Software Foundation\Tomcat 9.0\logs