pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kris Jurka <books@ejurka.com>
Cc: Chris Baty <batymohn@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC driver works in ccommand line, not in Tomcat5
Date: Wed, 05 Sep 2007 11:07:24 -0400
Message-ID: <13178.1189004844@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.BSO.4.64.0709050411170.27116@leary.csoft.net>
References: <4140.98645.qm@web81605.mail.mud.yahoo.com>
	<Pine.BSO.4.64.0709050308480.7645@leary.csoft.net>
	<Pine.BSO.4.64.0709050411170.27116@leary.csoft.net>

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



view thread (6+ messages)  latest in thread

Message-ID: <13178.1189004844@sss.pgh.pa.us>
Permalink:  ../13178.1189004844@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13178.1189004844@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, books@ejurka.com, batymohn@yahoo.com
  Subject: Re: JDBC driver works in ccommand line, not in Tomcat5
  In-Reply-To: <13178.1189004844@sss.pgh.pa.us>
  References: <4140.98645.qm@web81605.mail.mud.yahoo.com> <Pine.BSO.4.64.0709050308480.7645@leary.csoft.net> <Pine.BSO.4.64.0709050411170.27116@leary.csoft.net> <13178.1189004844@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox