jakartawebapp Download and install PostgreSQL Download Payera 6 server Download postgresql-42.7.5.jar (driver) and paste it in Payara\payara6\glassfish\lib Add Payera server on eclipse. Run it. Open http://localhost:4848 admin panel, create JDBC connection pool (User, Password, DatabaseName, PortNumber, ServerName) (CASE SENSITIVE!) Create JDBC Resource that uses that pool. Make sure persistence.xml is configured correctly and uses that JDBC Resource. Run Project on server.