RE: Struts to Postgresql db connection refused

2005-09-13 Thread David G. Friedman
eptember 13, 2005 8:24 AM 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

Re: Struts to Postgresql db connection refused

2005-09-13 Thread Adrian Maier
ED] > Sent: Tuesday, September 13, 2005 8:00 AM > To: user@struts.apache.org > Subject: Struts to Postgresql db connection refused > > > Hi, > > > When I connect Struts to Postgresql 8.0 database using DataSource object I > get the following error messages: > > Sour

Re: Struts to Postgresql db connection refused

2005-09-13 Thread Bjørn T Johansen
> 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

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 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 Adrian Maier
ED] > Sent: Tuesday, September 13, 2005 8:00 AM > To: user@struts.apache.org > Subject: Struts to Postgresql db connection refused > > > Hi, > > > When I connect Struts to Postgresql 8.0 database using DataSource object I > get the following error messages: > > Sour

RE: Struts to Postgresql db connection refused

2005-09-13 Thread David G. Friedman
e.org Subject: Struts to Postgresql db connection refused Hi, When I connect Struts to Postgresql 8.0 database using DataSource object I get the following error messages: Source: DataSource dataSource = null; try { dataSource = getDataSource(request); conn = dataSource.getConne

Struts to Postgresql db connection refused

2005-09-13 Thread R Rajendran
Hi, When I connect Struts to Postgresql 8.0 database using DataSource object I get the following error messages: Source: DataSource dataSource = null; try { dataSource = getDataSource(request); conn = dataSource.getConnection(); stmt = conn.createStatement(); String

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

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 erro

Struts to Postgresql db connection refused

2005-09-08 Thread R Rajendran
Hi, When I connect Struts to Postgresql 8.0 database using DataSource object I get the following error messages: Source: DataSource dataSource = null; try { dataSource = getDataSource(request); conn = dataSource.getConnection(); /* working Class.forName("org.po