Re: jdbc connect problems
From: Vince (vgodefroy_at_yahoo.fr)
Date: 10/18/03
- Previous message: Klaus: "mySQL: wrong characters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 18 Oct 2003 21:37:23 +0200
Ike wrote:
> I have an applet which connects to a MySQL database with the GNU JDBC
> driver. When I run the applet in appletViewer on my local machine, it
> connects to the remote server just fine.
>
> However, when I put the applet up on the remote server, and invoke it
> through the browser, signing in with the same parameters as before for
> server/user/password, etc., I get:
>
> "Database access failed java.sql.SQLException: Unable to connect to any
> hosts due to exception: java.security.AccessControlException: access denied
> (java.util.PropertyPermission file.encoding read)"
>
> The Applet is digitally signed. The driver jar as well as the application
> jar are both in htttp://mydomain.com/WEB-INF/lib (this is on Tomcat)
>
> Anyone have any clue why I can connect when I run it in appletViewer in my
> local machine, but not from within the browser from the server itself?
> Thanks, Ike
>
>
applets are designed with maximum security restrictions. i.e. no access
to file system nor connection of any kind. But there is possibility to
write a policy file to grant access to an applet to do such things.
i've had this problem whith an applet which needed to connect via RMI
and solved it in this way.
- Previous message: Klaus: "mySQL: wrong characters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|