Group: pgsql.interfaces.jdbc


Subject: JDBC driver works in ccommand line, not in Tomcat5
From: tgl@sss.pgh.pa.us (Tom Lane)
Date: 9/5/2007 11:07:24 AM
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 ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match