When I am creating a project with GWT Designer, it automatically creats a client and server package. I have write the code for connecting to MySql database in client package. At that time it shows an error message that "java.sql.Connection cannot be found in source packages.Check the inheritance chain from your module, it may not be inheriting a required module or a module may not be adding its source path entries properly. But when I am writing the code for connecting to the database in server package or in other packages, it does not shows any error message. But when I am calling this method in client package, it does not shows any error message. But it is not running, and display an error message in the server hosted mode that "no source code is available for type package.Classname, did you forget to inherit a required module?
How can I connect to a GWT project to MySql database.