From: | "Nick Fankhauser" <nickf(at)ontko(dot)com> |
---|---|
To: | "Sanjeev Rathore" <intmail2002(at)yahoo(dot)com>, <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: can't access database from servlet |
Date: | 2002-01-03 13:41:58 |
Message-ID: | NEBBLAAHGLEEPCGOBHDGMEDNECAA.nickf@ontko.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Sanjeev-
At first glance, your code looks good. I suspect that the user that Tomcat
runs as has not been granted access to the "names" table at the SQL level.
You are probably running psql as the user who created the table, so you can
see it fine at the sql command prompt, but Tomcat is probably running as
user "tomcat" or "www-data".
I think "ps axu" would show you the user that tomcat is running as.
-Nick
--------------------------------------------------------------------------
Nick Fankhauser nickf(at)ontko(dot)com Phone 1.765.935.4283 Fax 1.765.962.9788
Ray Ontko & Co. Software Consulting Services http://www.ontko.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Nick Fankhauser | 2002-01-03 13:47:58 | Re: can't access database from servlet |
Previous Message | Dave Cramer | 2002-01-03 13:30:17 | FW: [HACKERS] Failure in timestamptz of JDBC of 7.2b4 |