The error happens after entering login and password:
"Deuorg.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP / IP connections. "
I'm making the connection this way and I need it to stay that way for now:
<%
String url = "jdbc:postgresql://postgres-postgresconection.jelastic/siscosi";
String usuario = "xxxx";
String senha = "xxxx";
try {
Class.forName("org.postgresql.Driver");
Connection conexao = DriverManager.getConnection(url, usuario, senha);