Hi,
I’m new to Vaadin.
I want to get a connection to Amazon Relational Data Store or do you know an other good Relational Database ?
I have an error and can’t solve it.
My Code:
JDBCConnectionPool pool = new SimpleJDBCConnectionPool(
" com.mysql.jdbc.Driver",
“url to databse”, “Username”, “password”, 2, 5);
TableQuery tq = new TableQuery(“user”, pool);
tq.setVersionColumn(“OPTLOCK”);
FreeformQuery query = new FreeformQuery(
“SELECT * FROM USER”, pool, “Username”);
SQLContainer container = new SQLContainer(query);
layout.addComponent(new Label((String) container.getIdByIndex(1)));
Error:
java.lang.RuntimeException: Specified JDBC Driver: com.mysql.jdbc.Driver - initialization failed.
Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
I add the mysql-connector.jar into my Web-Inf/lib folder and also add the jar to my build path.
I run the application at google app engine.
Thanks for help.