Thread: Re: [GENERAL] Re: ongoing holy grail thread

Re: [GENERAL] Re: ongoing holy grail thread

From
Justin Clift
Date:
Hi Tony,

<snip>
> Todays questions:
>
>     - what should I be looking for to see if the Tomcat application
>     server is correctly loading the jdbc driver?

When we installed Tomcat and PostgreSQL, I just copied the
postgresql.jar file into the /lib directory inside the tomcat
installation directory.  I installed tomcat in /usr/local/tomcat from
memory, so that would make it /usr/local/tomcat/lib

When tomcat starts, it has a logfile directory.  I'm not a java guy, but
I think the tomcat only notices that the PostgreSQL driver isn't loaded
properly when someone actually tries to use it (the PostgreSQL driver
that is).  Can't remember whether it reports the error message to its
logfiles or to the application trying to use PostgreSQL though.

>
>     - how do I know that I have all the correct permissions set in order
>     to connect to the database (pg_hba.conf is set to "trust"
>     "everybody" on local network.

By default, no-one on your network has permission to touch your
PostgreSQL database.  If you've opened it up by specifying something
like :

host all <network IP address> <netmask> trust

then your users should be able to connect with a username of 'postgres'
from what I remember (if that's the PostgreSQL superuser on your server
that is).


>     - Ultradev is running on NT and connecting via "LAN" thus is using
>     SMB and not TCP/IP is this an issue?

If it's connecting via SMB, then does that means it's trying to use a
socket file?  Don't know if that's gunna work (never heard of it being
tried before).  Good luck.

You'd have better luck using TCP though, as we know NT can talk to
PostgreSQL with TCP.  We do it every day.

Regards and best wishes,

Justin Clift

--
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi

Re: [GENERAL] Re: ongoing holy grail thread - VICTORY!!!

From
Tony Grant
Date:
On 12 Apr 2001 22:40:56 +1000, Justin Clift wrote:

> When we installed Tomcat and PostgreSQL, I just copied the
> postgresql.jar file into the /lib directory inside the tomcat
> installation directory...

Justin wins the case of champagne (virtual for the time being)

The secret is there - where the jdbc .jar file goes.

> By default, no-one on your network has permission to touch your
> PostgreSQL database.  If you've opened it up by specifying something
> like :
>
> host all <network IP address> <netmask> trust
>
> then your users should be able to connect with a username of 'postgres'
> from what I remember (if that's the PostgreSQL superuser on your server
> that is).

Does not work, must be "host db_name IP user ident"

Maybe this has something to do with java security???

> >     - Ultradev is running on NT and connecting via "LAN" thus is using
> >     SMB and not TCP/IP is this an issue?

Had to connect via ftp (thus tcp/ip) to get it to work. Had to set up
ftp just right because Ultradev wants to write over the connection files
as it uses them.

Please bear with me on this one people: I'll try to write up a sort of
HOWTO to document for this. But it has taken me a week full time so far
and I have to get back to looking after my clients.

For now the secret was a clean install of _everything_ on a developpment
server. Everything meaning RedHat 7.0 on down to the Apache module...

I think that we should maybe get this info out to Macromedia to
supplement the MySQL stuff that is already in Ultradev.

Cheers

Tony Grant

--
RedHat Linux on Sony Vaio C1XD/S
http://www.animaproductions.com/linux2.html