title: Need help to connect to google Cloud SQL using Eclipse and GWT App Engine
body: <p>I'm trying since days to connect my GWT Project to a google cloud SQL Database. I am using jdbc and when I run this class as a Java class on a local DB or on my cloud SQL db it works perfect. </p>
  
  <pre><code>package com.google.gwt.timecalc.server;
  
  import java.io.IOException;
  import java.sql.*;
  
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  import com.google.appengine.api.rdbms.AppEngineDriver;
  import java.sql.*;
  import com.google.cloud.sql.Driver;
  public class ConnectionDB1 {
  
    static Connection con = null;
    static Statement stmt = null;
    static ResultSet rs = null;
  
    public static void main(String args[]) throws SQLException{
  
      DriverManager.registerDriver(new com.google.cloud.sql.Driver());
      try{
        // works local
        con = DriverManager.getConnection("jdbc:mysql://localhost/filme","root","admin" );                
  
        stmt = con.createStatement();
  
        rs = stmt.executeQuery("SELECT * FROM test");
  
  
        while ( rs.next() ){
          System.out.println("Id:                "+rs.getString(1));
          System.out.println("Name:           "+rs.getString(2));
        }
  
        rs.close();
        stmt.close();
        con.close();
      }
  
      catch ( SQLException e ){
        e.printStackTrace();
        System.exit(1);
      }   
  
    }
  }
  </code></pre>
  
  <p>When I try to do it with my GWT Application it wont work. I work with Requestfactory btw. I cannot even get the Connection to the cloud SQL DB like shown <a href="https://stackoverflow.com/questions/12681972/configure-google-cloud-sql-instance-in-eclipse">here</a>.</p>
  
  <p>Thats what I get the same error like <a href="https://stackoverflow.com/questions/12681972/configure-google-cloud-sql-instance-in-eclipse">here</a> </p>
  
  <p>I worked through the google tutorial to create a new Web App with cloud sql. I also saw <a href="https://stackoverflow.com/questions/12681972/configure-google-cloud-sql-instance-in-eclipse">this</a> but it didn't solve my problem. I also checked the google tutorials and I saw the example here:
  <a href="https://developers.google.com/appengine/docs/java/gettingstarted/creating" rel="nofollow noreferrer">https://developers.google.com/appengine/docs/java/gettingstarted/creating</a>
  Today I tried the connection turning off my firewall and antivirus but it didn't work.</p>
  
  <p>Any help on this would be really appreciated. Thanks in advance.</p>