Re: [Fwd: Re: Problem in connecting to database]

From: sαbαяiиαŧЋαи Iyєя <sabari(dot)us(at)gmail(dot)com>
To: Rekha Ravi Pai <rekha(at)softjin(dot)com>
Cc: pgsql-in-general(at)postgresql(dot)org
Subject: Re: [Fwd: Re: Problem in connecting to database]
Date: 2010-11-09 05:39:18
Message-ID: AANLkTimq9KN1sZW-EyvpEWDBEv+OEY8CdKsXs=gEg3Qi@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-in-general

hi Rekha,
Please check using telnet from machine from where your trying to
connect .

--
Best Regards and Thanks,
S.Sabarinathan .

On 9 November 2010 10:53, Rekha Ravi Pai <rekha(at)softjin(dot)com> wrote:

> Hi,
> In my postgresql.conf file I have added these key values.
>
> tcpip_socket = true
> max_connections = 100
> port = 5432
> shared_buffers = 1000
> log_connections = yes
> search_path = '$user,public'
>
> lc_messages = 'en_US.UTF-8' # locale for system error message
> strings
> lc_monetary = 'en_US.UTF-8' # locale for monetary formatting
> lc_numeric = 'en_US.UTF-8' # locale for number formatting
> lc_time = 'en_US.UTF-8'
>
>
> 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.
> ___________________________________________________________
>
> where is port no 5432 in url
>
> On Mon, Nov 8, 2010 at 2:00 PM, Rekha Ravi Pai <rekha(at)softjin(dot)com> wrote:
>
>> 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.
>> ___________________________________________________________
>>
>>
>
>
> --
> Rajesh Sirsat
>
>
> --
> Sent via pgsql-in-general mailing list (pgsql-in-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-in-general
>
>

In response to

Responses

Browse pgsql-in-general by date

  From Date Subject
Next Message Rekha Ravi Pai 2010-11-09 05:46:24 Re: [Fwd: Re: Problem in connecting to database]
Previous Message Rekha Ravi Pai 2010-11-09 05:36:02 Re: Problem in connecting to database]