Request processing failed; nested exception is java.sql.SQLException: java.lang.ClassNotFoundException: org.hsqldb.JDBCDriver
package br.com.caelum.contas;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ConnectionFactory {
public Connection getConnection() throws SQLException {
System.out.println("conectando ...");
try {
Class.forName("org.hsqldb.JDBCDriver");
} catch (ClassNotFoundException e) {
throw new SQLException(e);
}
return DriverManager.getConnection("jdbc:hsqldb:file:contas.db","sa", "");
}
}
Está dando esse erro, não consigo resolver