I'm not familiar with your specific errors but I use tomcat to connect
to a jndi database and because of this I use the 'noserver' switch
when running in hosted mode.  This way GWT doesn't start its own
server but uses the tomcat I already have running.

On Oct 3, 10:52 am, Ehsan <[email protected]> wrote:
> I want to connect to a mysql database at localhost:3306 using jdbc in
> a GWT servlet, but when try connecting i get this error :
>
> java.security.AccessControlException: access denied
> (java.lang.RuntimePermission modifyThreadGroup)
> ...
>
> I know that i need to apply a security policy for tomcat to solve this
> proble, something like this :
>
> grant codeBase "file:${catalina.home}/webapps/-" {
>    permission java.net.SocketPermissexactly where ion
> "192.168.12.81:3306", "connect";
>
> };
>
> but I dont know I should apply this change ???
> please explain solution for both hosted mode & web mode .
> thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to