jsp postgresql problems
От | Ryan Skoblenick |
---|---|
Тема | jsp postgresql problems |
Дата | |
Msg-id | 000801c1c30e$624daa20$bb372a18@cr704668a обсуждение исходный текст |
Ответы |
Re: jsp postgresql problems
Re: jsp postgresql problems weird problems solved ?? |
Список | pgsql-jdbc |
<%@ page import ="java.sql.*" %>
<%
Driver drv = (Driver)Class.forName("org.postgresql.Driver").newInstance(); Connection conn = java.sql.DriverManager.getConnection("jdbc:postgresql://localhost:5432/db_name", "username", "password");
%>
now the stack error i am running into is:
Connection refused. Check that the hostname and port is correct, and that the postmaster is running with the -i flag, which enables TCP/IP networking.
i know its not the server or the way it is setup cause i can connect to the DB in ASP? so what is wrong with the JSP? i do have the drivers installed for postgresql cause the first error before this i was getting was that it couldn't find the drivers (silly me forgot to reset the server).
anyone help ?
Thanks
В списке pgsql-jdbc по дате отправления: