The scene: Tony re-writing his HOWTO
The players: Tomcat4, Postgresql 7.2
The plot: writing to page the definitive guide on file permissions so
that Tomcat can talk to Postgresql via JDBC.
All that in place - the install on my development machine gives the
following result:
- I can read fronm the database. The web app functions perfectly and
with Tomcat4/Postgresql 7.2 much faster (no benchmarks, just human
"feels snappier")
- when I try to login to the administration pages I get chucked out...
javax.servlet.ServletException: Connection refused. Check that the
hostname and port is correct, and that the postmaster is running with
the -i flag, which enables TCP/IP networking.
YES IT IS FOR PETES SAKE!!!!!!
My question for the weekend is "what files/applications should have what
read/write permissions?".
In fact I feel that this is a much wider Unix/Linux question which is
one of the major problems for newcomers. I am not (a newcomer) but have
had trouble (coming from the Mac) understanding what is what since
1997...
We have three users: tony (thats me =;-{ ), postgres and tomcat4. tony
is via JDBC trying to send a login/password combination via JSP to
tomcat4. tomcat4 is validating the password against a table in
postgresql and getting the errror above.
tomcat doesn't have (decent) docs (now you know why I wrote a HOWTO)
postgresql has good docs (If I said "great" you would get sloppy...).
But there is no place where it is written in stone who should own what.
help
Cheers
Tony
--
RedHat Linux on Sony Vaio C1XD/S
http://www.animaproductions.com/linux2.html
Macromedia UltraDev with PostgreSQL
http://www.animaproductions.com/ultra.html