TomCat - alandrade21/docsCompartilhados GitHub Wiki
Coloca no contex.xml
do server
<Resource auth="Container" driverClassName="org.postgresql.Driver"
maxIdle="30" maxTotal="100" maxWaitMillis="-1" name="jdbc/<nome-do-datasource>"
password="<senha-de-banco>" poolPreparedStatements="true" type="javax.sql.DataSource"
url="jdbc:postgresql://localhost:5432/<nome-do-banco>" username="<usuario-do-banco>" />
sudo systemctl start tomcat8
sudo systemctl stop tomcat8
sudo systemctl restart tomcat8
sudo systemctl status tomcat8