Hi!

I just started with GWT some hours ago, and I have allready a full
functional web application :)

The only issue is, that I can not use hosted mode (which would be
great for development) when I have to access the database:

[code]
Caused by: java.net.SocketException:
java.security.AccessControlException: access denied
(java.net.SocketPermission 127.0.0.1:3306 connect,resolve)
        at
com.mysql.jdbc.StandardSocketFactory.unwrapExceptionToProperClassAndThrowIt
(StandardSocketFactory.java:404)
        at com.mysql.jdbc.StandardSocketFactory.connect
(StandardSocketFactory.java:265)
        at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)[/code]

When I GWT-complie and deploy to tomcat it works like it should. Is
there any way to define the socket permissions for the hosted mode?
The java.policy of the used Java does not seem to make any difference:

[code]grant{permission java.net.SocketPermission "127.0.0.1:3306",
"connect, resolve";};)[/code]

GWT: 1.7
OS: Mac 10.5.7 (Java 1.5.0 - 32bit, because GWT is very old and does
not support 64 *ggg*)

Thank you very much in advance!

Regards, Anton

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to