Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 8D00F9FA31B for ; Wed, 5 Sep 2007 12:07:30 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 58730-01 for ; Wed, 5 Sep 2007 12:07:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 483909F9BFF for ; Wed, 5 Sep 2007 12:07:27 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l85F7O5q013179; Wed, 5 Sep 2007 11:07:24 -0400 (EDT) To: Kris Jurka cc: Chris Baty , pgsql-jdbc@postgresql.org Subject: Re: JDBC driver works in ccommand line, not in Tomcat5 In-reply-to: References: <4140.98645.qm@web81605.mail.mud.yahoo.com> Comments: In-reply-to Kris Jurka message dated "Wed, 05 Sep 2007 04:18:30 -0400" Date: Wed, 05 Sep 2007 11:07:24 -0400 Message-ID: <13178.1189004844@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/23 X-Sequence-Number: 17445 Kris Jurka 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