Re: JDBC driver works in ccommand line, not in Tomcat5

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: JDBC driver works in ccommand line, not in Tomcat5
Дата
Msg-id 13178.1189004844@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: JDBC driver works in ccommand line, not in Tomcat5  (Kris Jurka <books@ejurka.com>)
Ответы Re: JDBC driver works in ccommand line, not in Tomcat5  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc
Kris Jurka <books@ejurka.com> writes:
> Turns out this is pretty easy to do, I'm just not sure what the best text
> to report to the user is, so far I have:

>      Your security policy has prevented the connection from being
>      attempted.  You must grant the connect java.net.SocketPermission
>      to the database server host and port that you wish to connect to.

Can you really tell for sure that it's security policy and not something
else?  A message as specific as this would be downright
counterproductive if it's wrong.

FWIW, the backend's style guide would suggest dividing that into an
ERROR and a HINT, particularly if the HINT could be mistaken.

            regards, tom lane

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

Предыдущее
От: "Heikki Linnakangas"
Дата:
Сообщение: Re: PreparedStatement rounds doubles to scale 14 during update
Следующее
От: Josh Berkus
Дата:
Сообщение: Caching driver on pgFoundry?