Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static SessionFactory buildSessionFactory (Class paramClass) {
- return new Configuration()
- .configure("hibernate.cfg.xml")
- .addAnnotatedClass(paramClass)
- .buildSessionFactory();
- }
- ##URL for connection to DB
- hibernate.connection.url = jdbc:h2:tcp://localhost:8080/~/public
- org.hibernate.service.spi.ServiceException: Unable to create requested
- service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
- ...
- Caused by: org.hibernate.exception.JDBCConnectionException: Error calling
- DriverManager#getConnection
- ...
- Caused by: java.sql.SQLException: No suitable driver found for
- jdbc:h2:tcp://localhost:8080/~/public
Add Comment
Please, Sign In to add comment