Hi,
I have installed postgresql 9.0 and tomcat 6.0.
I created the jsp page given below.
---------------------------------------------------------------------------------------------------
<html>
<head>
</head>
<%@ page language="java" import="java.sql.*, beans.*" %>
<%!
Connection myConn=null;
%>
<body>
<%
//PasswordEncryptService p = new PasswordEncryptService();
try{
Class.forName("org.postgresql.Driver").newInstance();
myConn=DriverManager.getConnection("jdbc:postgresql://localhost/postgres?user=postgres&password=postgres");
out.println("myConn :"+myConn.toString());
}catch(Exception e){
out.println(e.toString());
}
out.println("myConn :");
%>
<B>Done</B>
</body>
</html>
-------------------------------------------------------------------------------------------------------------------------------
On running the web page I am getting the following error.
org.postgresql.util.PSQLException: Connection
refused. Check that the
hostname and port are correct and that the postmaster is accepting
TCP/IP connections.
Can anybody help me in this regard?
Regards,
Rekha
Business Disclaimer
____________________________________________________________
This e-mail message and any files transmitted with it are intended solely
for the use of the individual or entity to which they are addressed. It
may contain confidential, proprietary or legally privileged information.
If you are not the intended recipient please be advised that you have
received this message in error and any use is strictly prohibited. Please
immediately delete it and all copies of it from your system, destroy any
hard copies of it and notify the sender by return mail. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any part of
this message if you are not the intended recipient.
___________________________________________________________