Re: Struts to Postgresql db connection refused

2005-09-13 Thread Adrian Maier
On 9/13/05, David G. Friedman [EMAIL PROTECTED] wrote: Raj, Have you double checked that you can reach it from the command line on the server BEFORE trying it in Tomcat? I've encountered problems where a slight mistake in the MySQL configuration often causes this problem, not usually the

RE: Struts to Postgresql db connection refused

2005-09-13 Thread R Rajendran
It works fine with command line. I could connect to the db and query. Thanks Raj From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Tue 9/13/2005 5:00 AM To: Struts Users Mailing List Subject: RE: Struts to Postgresql db connection refused Raj, Have

RE: Struts to Postgresql db connection refused

2005-09-13 Thread R Rajendran
I tried this command it works: psql -Upostgres -d omsdb -h 192.168.1.22 -p 5432 Thanks Raj From: Adrian Maier [mailto:[EMAIL PROTECTED] Sent: Tue 9/13/2005 5:24 AM To: Struts Users Mailing List Subject: Re: Struts to Postgresql db connection refused On 9

Re: Struts to Postgresql db connection refused

2005-09-13 Thread Bjørn T Johansen
-d omsdb -h 192.168.1.22 -p 5432 Thanks Raj From: Adrian Maier [mailto:[EMAIL PROTECTED] Sent: Tue 9/13/2005 5:24 AM To: Struts Users Mailing List Subject: Re: Struts to Postgresql db connection refused On 9/13/05, David G. Friedman [EMAIL

Re: Struts to Postgresql db connection refused

2005-09-13 Thread Adrian Maier
On 9/13/05, David G. Friedman [EMAIL PROTECTED] wrote: Raj, Have you double checked that you can reach it from the command line on the server BEFORE trying it in Tomcat? I've encountered problems where a slight mistake in the MySQL configuration often causes this problem, not usually the

RE: Struts to Postgresql db connection refused

2005-09-13 Thread David G. Friedman
To: Struts Users Mailing List Subject: Re: Struts to Postgresql db connection refused On 9/13/05, David G. Friedman [EMAIL PROTECTED] wrote: Raj, Have you double checked that you can reach it from the command line on the server BEFORE trying it in Tomcat? I've encountered problems where

Re: Struts to Postgresql db connection refused

2005-09-08 Thread Brian Bruns
You need to add the -i switch to postmaster (-o -i to pg_ctl I think) to enable tcp/ip connections. Please see the PostgreSQL documentation. 2005/9/8, R Rajendran [EMAIL PROTECTED]: Hi, When I connect Struts to Postgresql 8.0 database using DataSource object I get the following error

Re: Struts to Postgresql db connection refused

2005-09-08 Thread Murray Collingwood
Hi Raj While I'm not using Postgresql (MySQL instead) there were a couple of things I noticed that you might need to check: 1. You have specified the data source entry in your Struts-config.xml - on my Tomcat 5.0 I need to enter this in the META-INF/context.xml (I have more on this if you