Hi, did you find a solution for your problem, because I've the same.
And I yould like to add some information : I can access the DataBase
with my IP adress so thats not the cause of my problem.
On May 18, 7:57 pm, "
ebe...@gmail.com" <
ebe...@gmail.com> wrote:
> I've just set up the GWT today as plugin to Eclipse (3.4.1) after
> installing PostgreSQL (8.3). I'm pretty new to these applications, and
> have been having minor snag after minor snag that's resulting in a
> rather large hole in my shirt.
>
> Right now I have a problem that isn't GWT's fault, per se, but I don't
> know where to look in the Eclipse project to find the appropriate
> permissions file.
>
> Long story short: Ineedto add the permissions forjava.net.SocketPermissionto localhost onport5432, and I think this
> because I get the following error when trying toconnectto mydatabaseafter loading the JDBC driver for postgresql:
>
> "org.postgresql.util.PSQLException:Yoursecuritypolicyhasprevented
> theconnectionfrombeingattempted. Youprobablyneedtogranttheconnectjava.net.SocketPermissionto thedatabaseserverhostandport
> thatyouwishtoconnectto."
>
> I've tried adding such asecuritypolicyto all of my JRE's /jre/lib/security/java.policyfiles, but no luck - still get the error. Am I
> creating thepolicywrong in those files, or is it that when the GWT
> debugs/compiles it obeys a differentpolicyfile?
>
> Please let me know, thanks in advance, and please pardon me if thishasalready been covered... but I've been googling around for an hour