Ten błąd co pokazałeś, znalazłem średnio go rozumiem ponieważ w konfiguracji jest tak:
<Resource name="jdbc/tutorialonline"
auth="Container"
type="javax.sql.DataSource"
username="tutorialonline"
password="tutorialonline"
driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://127.0.0.1:5432/tutorialonline"
maxWaitMillis="10000"
validationQuery="SELECT 1"
testOnBorrow="false"
testWhileIdle="true"
timeBetweenEvictionRunsMillis="1200000"
minEvictableIdleTimeMillis="1800000"
numTestsPerEvictionRun="5"
defaultAutoCommit="true"
/>
<!--Należy uzupełnić poniższe wpisy w pliku context.xml:-->
<!-- Konfiguracja rodzaju bazy danych możliwe wartości do wpisania: postgres / oracle-->
<Environment name="tutorialonline/server/databaseType" value="postgres" type="java.lang.String"/>
oraz 2 plik
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://127.0.0.1:5432/tutorialonline
username: tutorialonline
password: tutorialonline