Re: can't access database from servlet

Поиск
Список
Период
Сортировка
От Nick Fankhauser
Тема Re: can't access database from servlet
Дата
Msg-id NEBBLAAHGLEEPCGOBHDGMEDNECAA.nickf@ontko.com
обсуждение исходный текст
Ответ на can't access database from servlet  (Sanjeev Rathore <intmail2002@yahoo.com>)
Список 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@ontko.com  Phone 1.765.935.4283  Fax 1.765.962.9788
Ray Ontko & Co.     Software Consulting Services     http://www.ontko.com/



В списке pgsql-jdbc по дате отправления:

Предыдущее
От: "Dave Cramer"
Дата:
Сообщение: Re: can't access database from servlet
Следующее
От: "Nick Fankhauser"
Дата:
Сообщение: Re: can't access database from servlet