1. Don't you need to specify the host name in your jdbc url?
Maybe:
jdbc:mysql://localhost/quickstart
OR IP?
jdbc:mysql://127.0.0.1/quickstart
2. I tried using DataSources under Struts months ago but I think I remember something about having to open the datasource like so:
javax.sql.DataSource dataSource;
java.sql.Connection myConnection;
try {
dataSource = getDataSource(request);
myConnection = dataSource.getConnection();
// do what you wish with myConnection
} catch (SQLException sqle) {
getServlet().log("Connection.process", sqle);
} finally {
//enclose this in a finally block to make
//sure the connection is closed
try {
myConnection.close();
} catch (SQLException e) {
getServlet().log("Connection.close", e);
}
}
(that was from
http://jakarta.apache.org/struts/faqs/database.html but it is generic enough code to apply here).
Are you doing that? How are you opening your datasource for a connection?
Regards,
David