Security problem while connecting MySQL using JDBC in GWT hosted mode

2009-10-04 Thread Ehsan
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

Re: Security problem while connecting MySQL using JDBC in GWT hosted mode

2009-10-04 Thread rjcarr
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