I have a problem with mysql.
does not connect to the database.
in the server-side i make this:
public class ServiceImpl extends RemoteServiceServlet implements
Service {
Connection conn = null;
String user = "root";
String password = "xxx";
String url = "jdbc:mysql://localhost:3306/";
String db = "ChatLog";
String driver = "com.mysql.jdbc.Driver";
protected Connection getConn() {
String resultString;
try{
Class.forName(driver).newInstance();
conn = (Connection) DriverManager.getConnection(url+db, user,
password);
resultString="Connected";
}
catch(Exception e){
System.err.println("Unable to connect");
e.printStackTrace();
resultString="failed";
}
return conn;
}
catch the exception "Unable to connect".
I loaded mysql-connector in the library!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" 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/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---