Skip site navigation (1) Skip section navigation (2)

Re: [INTERFACES] Problem accessing databse via servlets

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Anders Svensson <anders(at)simusoft(dot)dk>
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] Problem accessing databse via servlets
Date: 1999-09-27 13:57:48
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
Anders Svensson <anders(at)simusoft(dot)dk> writes:
> I have 2 servlets, with basicly the same code for the database interface.
> My problem is that one works the others doesn't.
> The funny thing ?? is that the trouble program works if it is not run from
> a servlet, but from a command line????????

Strictly a guess, but: I recall a similar complaint which turned out
to be due to some kind of "virtual hosting" setup on the web server.
The net effect was that the applet appeared to be connecting from a
different IP address than the user thought it would be connecting from,
and of course that virtual IP address wasn't listed in pg_hba.conf.

If you are running a recent Postgres release (I think >= 6.5 but maybe
this is in >= 6.5.1) the postmaster log should show the IP address that
it saw the connection as coming from, so you can check this theory by
looking in the logfile.

The same message is echoed back to the client, BTW, but apparently the
jserv code thinks it should protect your innocent eyes by not showing
you the server error message :-(

			regards, tom lane

pgsql-interfaces by date

Next:From: Lamar OwenDate: 1999-09-27 14:59:40
Subject: Re: [INTERFACES] webserver interface
Previous:From: Craig PotterDate: 1999-09-27 13:46:33
Subject: [INTERFACES] webserver interface

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group