I could not find a link to this issue. I have searched for examples using MySQL and I am following the examples, but I still have this issue. I am using GWT and I have set up a MySQL server on another host. I want to get things working locally before deploying. I am able to see the driver as the Class.forName("com.mysql.jdbc.Driver") call is successful. The problem is getting the connection using DriverManager.getConnection(url, username, password). I know the credentials are correct. The exception I am getting is:
java.sql.SQLException: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more details.
Based on other examples, I do not see what I am doing differently. Could this possibly be because the SQL server is on a different host? I have set the connection string using the IP address so I don't have to do a lookup:
private static final String url="jdbc:mysql://xx.xx.xx.xx:3306/dbname";
Yes, I have a valid IP where I have the XX's. This code works fine if I am not running in the GWT. Could this be because I am running the DB server on another host? Is this not allowed?
Help is appreciated
Marty