Re: access from java does not work in an applet!

From: The Boss <jlemcke(at)netspace(dot)net(dot)au>
To: "B(dot)N(dot)V(dot) Raman" <raman(at)myself(dot)com>
Cc: "Pgsql-Jdbc(at)Postgresql(dot) Org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: access from java does not work in an applet!
Date: 2001-05-15 12:45:29
Message-ID: 3B0124E9.7A64D653@netspace.net.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

You may need to GRANT access on the database to the user which the applet
belongs (nobody?).

"B.N.V. Raman" wrote:

> Thank you both, Joe & Antonio...
>
> Yes, my webserver and database server are on the same machine. That is why i
> can't understand the error. Sorry, I forgot to mention that in my mail. What
> could be the problem?
>
> Thanks..
>
> Raman.
>
> > -----Original Message-----
> > From: Joe Shevland [mailto:J(dot)Shevland(at)eclipsegroup(dot)com(dot)au]
> > Sent: 15 May 2001 07:20
> > To: 'B.N.V. Raman'; Pgsql-Jdbc(at)Postgresql(dot) Org
> > Subject: RE: [JDBC] access from java does not work in an applet!
> >
> >
> > Applets sit in security 'sandbox'... you can only make connections back to
> > the applet's originating server from the applet, so if your Postgres
> > database is on the web server it'll be OK (barring firewalls etc.) but if
> > its on another server the applet context will complain.
> >
> > Your alternatives are to digitally sign the applet and loosen the security
> > restrictions, provide a proxying service from your web server to the
> > database server (or a natd rule), and potentially some other
> > options that my
> > shrivelled brain can't come up with at the moment ;)
> >
> > Regards,
> > Joe
> >
> >
> > > -----Original Message-----
> > > From: B.N.V. Raman [mailto:raman(at)myself(dot)com]
> > > Sent: Tuesday, 15 May 2001 10:19 PM
> > > To: Pgsql-Jdbc(at)Postgresql(dot) Org
> > > Subject: [JDBC] access from java does not work in an applet!
> > >
> > >
> > > Hello,
> > >
> > > Using JDBC, I was making a web access program for my postgres
> > > database.
> > > While the same code works in a Java program, when i convert
> > > it into a Java
> > > applet, i get a netscape security exception. What do i do?
> > >
> > > Thanks,
> > >
> > > Raman.
> >
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.250 / Virus Database: 123 - Release Date: 18/04/01
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tom Lane 2001-05-15 14:01:02 Re: access from java does not work in an applet!
Previous Message B.N.V. Raman 2001-05-15 12:19:00 access from java does not work in an applet!