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
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
> 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
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
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
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
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
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
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
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
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
11 matches
Mail list logo