an java.sql.SQLException: No suitable driver found for jdbc:h2:tcp://localhost/~/ZadatakDB is thrown when I try to connect to h2 database using a java web application.
For a maven project ensure that of com.h2database dependency is not set to test. I removed the scope completely for my dependency and the issue was resolved.